[Tutor] simple plots

Kent Johnson kent37 at tds.net
Sat Aug 22 03:27:41 CEST 2009


On Fri, Aug 21, 2009 at 8:34 PM, questions anon<questions.anon at gmail.com> wrote:
> I would like to make some simple plots using matplotlib (or any python
> plotting modules) and I can find lots of examples that generate random data
> and then plot those, but I cannot find any that read in data from excel or a
> text file, manipulate the data and then plot the data. Does anyone have any
> examples for this or webpages I could go to?

What form is the data? You can use the csv module to read comma- or
tab-separated values. You can use the third-party xlrd module or COM
to read Excel files. What kind of data manipulation do you need?
Python has many built-in facilities for that.

Kent


More information about the Tutor mailing list