[CentralOH] Simple XY Graphing

Eric Floehr eric at intellovations.com
Sat Dec 3 23:02:17 CET 2011


> Eric,
> Thanks.  I don't know anything about it, but I wonder if Matplotlib is
> overkill for what I need.  I don't need the hover-overs (at least not now).
> Mark

I'm not exactly sure what you mean by overkill... yes matplotlib has a lot
of capability.  But that doesn't mean it's hard to use or get started with
for simple xy plots:

import matplotlib.pyplot as plt
x = range(6)
plt.plot(x, [xi**2 for xi in x])  # x and y, plots y=x^2 for six points
plt.savefig('plot.png')  # plt.show() will show instead of save

I don't think you can get much simpler that that.


> _______________________________________________
> CentralOH mailing list
> CentralOH at python.org
> http://mail.python.org/mailman/listinfo/centraloh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/mailman/private/centraloh/attachments/20111203/577e793a/attachment.html>

More information about the CentralOH mailing list