From d2754fa5701a4cfd1451de6c41687654143a8b2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matth=C3=ADas=20P=C3=A1ll=20Gissurarson?= Date: Fri, 11 Nov 2022 11:06:06 +0100 Subject: [PATCH] Add axvline --- src/Graphics/Matplotlib.hs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Graphics/Matplotlib.hs b/src/Graphics/Matplotlib.hs index 3da834c..fde573e 100644 --- a/src/Graphics/Matplotlib.hs +++ b/src/Graphics/Matplotlib.hs @@ -406,6 +406,9 @@ ylim l u = mp # "ax.set_ylim(" # l # "," # u # ")" -- | Add a horizontal line across the axis axhline y = mp # "ax.axhline(" # y ## ")" +-- | Add a vertical line across the axis +axvline x = mp # "ax.axvline(" # x ## ")" + -- | Insert a legend legend = mp # "ax.legend(" ## ")"