4 ms·
Toyplot – A plotting toolkit for Python
- jftuga 9y agoI wish they had more examples for time-series data.
- cwyers 9y agoSeems like a fair amount of boilerplate. You really have to specify that the axes are Cartesian with every simple two-axis plot you make?
- ketralnis 9y agoThis is the code from the beginning of the tutorial: # make some test data import numpy x = numpy.linspace(0, 10) y = x ** 2 # plot it import toyplot canvas = toyplot.Canvas(width=300, height=300) axes = canvas.cartesian() mark = axes.plot(x, y) 3 lines excluding the import doesn't strike me as a remarkable amount of boilerplate
- bpicolo 9y agoSeems like an easy thing to make a helper function for.
- knlje 9y agoHalf of my plots use logarithmic scale. Makes sense to me. I really like the default axis styling where they have gone against the mainstream style of gnuplot/matlab. I'm definitely going to try this out sometime soon.
- shoyer 9y agoTake a look at their "Convenience API" (http://toyplot.readthedocs.io/en/stable/convenience-api.html http://toyplot.readthedocs.io/en/stable/convenience-api.html) that does indeed make simple two-axis plots a one-liner. toyplot.plot(x, y) seems pretty hard to beat!
- great_psy 9y agoAm I the only one who gets a bit ticked off when seeing the axis not cross at the origin ?
- jdnier 9y agoIs that a style decision? I haven't seen that before. Seems confusing.
- deleted 9y ago[deleted]
- kgarten 9y agoreminds me on the histograms in R. E.g. http://www.r-tutor.com/elementary-statistics/quantitative-data/histogram http://www.r-tutor.com/elementary-statistics/quantitative-da... They also don't cross and I felt it's aesthetically pleasing in that case ... yet for all plots I agree with you.
- imcoconut 9y agoare there any significant benefits over matplotlib?