Skip to content

Commit

Permalink
Merge pull request #16 from Tritlo/master
Browse files Browse the repository at this point in the history
Add axvline
  • Loading branch information
abarbu authored Jan 16, 2024
2 parents 5c186cb + d2754fa commit f85bb16
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Graphics/Matplotlib.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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(" ## ")"

Expand Down

0 comments on commit f85bb16

Please sign in to comment.