matplotlib-haskell
matplotlib-haskell copied to clipboard
Off-by-one error in line1
line1 quoted in full below:
-- | Plot a line between 0 and the length of the array with the given y values
line1 :: (Foldable t, ToJSON (t a)) => t a -> Matplotlib
line1 y = line [0..length y] y
should be [0...length y - 1], otherwise the lengths are mismatched and python throws an exception.