[CentralOH] Simple XY Graphing
Eric Floehr
eric at intellovations.com
Sat Dec 3 23:04:48 CET 2011
Oh, and here is the plot that those four lines of code make:
http://i.imgur.com/3uzjl.png
-Eric
On Sat, Dec 3, 2011 at 5:02 PM, Eric Floehr <eric at intellovations.com> wrote:
> Mark,
>
>
>
>> 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.
>
> -Eric
>
>
>
>
>
>
>> _______________________________________________
>> 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/661bded0/attachment.html>
More information about the CentralOH
mailing list