You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
People used to matplotlib may find the requirement to supply the x values to a Curve annoying. I don't see why the Curve constructor couldn't just take a list/array of y-values and automatically generate the x-values by the index.
The text was updated successfully, but these errors were encountered:
This simplifies constructing simple plots without supplying
explicit x-values. This more closely matches the matplotlib
API making it easier for new users to get started and
addresses issue #133.
I've added the new constructor in the commit above. All Chart Element types may now be instantiated with a simple iterable of y-values, e.g. this is now valid:
People used to matplotlib may find the requirement to supply the x values to a
Curve
annoying. I don't see why theCurve
constructor couldn't just take a list/array of y-values and automatically generate the x-values by the index.The text was updated successfully, but these errors were encountered: