[Tutor] Basic Question about Visualization for enduser
Mats Wichmann
mats at wichmann.us
Tue Jun 25 10:25:35 EDT 2019
On 6/25/19 6:39 AM, Sinardy Xing wrote:
> Hi,
>
> I am a newbie with python and the data visualization.
> I have completed pandas.DataFrame stuff and also the matplotlib.
>
> All of the example that I learned from internet currently are using the
> Anaconda Jupyter Notebook.
> I know there are API where we can output the result of the graph to png,
> will that be possible all these done automatically and dynamically via an
> apps ?
You can generate graphs with mathplotlib. If you're specifically
looking for a png, it looks a bit like this (assuming you want to follow
the usual conventions for shortening the name, which certainly isn't
required):
from matplotlib import pyplot as plt
plt.savefig('foo.png')
savefig looks at the file extension in determining what to output.
Without a specific question, I'm not sure what else we can say...
More information about the Tutor
mailing list