[Tutor] Plotting with python
Mark Lawrence
breamoreboy at yahoo.co.uk
Fri Oct 30 22:24:45 EDT 2015
On 31/10/2015 00:00, Terry Carroll wrote:
> If you were going to get started doing some simple plotting with Python
> 2.7 (in my case, I'm simply plotting temperature against time-of-day)
> what would you use?
>
> - matplotlib [1]
> - gnuplot [2]
> - something else entirely?
>
> Assume no substantial familiarity with the underlying plotting software,
> let alone the Python bindings.
>
> The only thing I can think of that might be special is to specify the
> upper/lower bounds of the plot; for example, in my case, I know the
> temperatures vary between somewhere around 70-78 degrees F., so I'd want
> the Y-axis to go, say 60-90, not arbitrarily start at zero; but I
> suspect this is a pretty standard thing in almost any plotting package.
>
> [1] http://matplotlib.org/api/pyplot_api.html
> [2] http://gnuplot-py.sourceforge.net/
>
matplotlib, I gave up gnuplot in favour of it maybe 15 years ago and
have never looked back.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
More information about the Tutor
mailing list