MatPlotLib:如何制作一个简单的情节作为弹出窗口?

时间:2013-11-07 08:24:44

标签: python matplotlib tkinter pandas ipython

我正在使用Ipython和pandas来创建一系列数字。

 temperature_series = filtered_df['Daily Change'].cumsum()

我正在做:

 plot = temperature_series .plot(marker    ='o',\
                                 linestyle ='-', \
                                 color     = 'red', \
                                 title     = 'Cumulative Change',\
                                 figsize   = (15,6))

在Ipython中,我得到了一个很好的情节。我正在尝试使用tkinter创建一个简单的GUI,它只会打开一个显示绘图的窗口。这通常是如何通过pythonically进行的?它不一定需要使用tkinter,我使用的是Windows 7机器,我认为它也可以使用tempfile完成 - > save figure ---> open figure。

1 个答案:

答案 0 :(得分:0)

我建议使用wxPython(示例here),但如果您想使用Tkintermatplotlib网站here上有一些示例{ {3}}。