ts.plot() pandas: No plot!

Mark Lawrence breamoreboy at yahoo.co.uk
Sun Jan 31 20:43:33 EST 2016


On 01/02/2016 00:46, Paulo da Silva wrote:
> Hi!
>
> I am learning pandas and following the tutorial I tried the following:
> ts = pd.Series(np.random.randn(1000), index=pd.date_range('1/1/2000',
> periods=1000))
> ts = ts.cumsum()
> ts.plot()
>
> No plot is produced!
> Only the following output:
> <matplotlib.axes.AxesSubplot object at 0x7f33019b6630>
>
> Any clue on what is happening?
>
> I'm using kubuntu and python3.
>
> Thanks.
> Paulo
>

Is it as simple as adding a call to ts.show() ?

-- 
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 Python-list mailing list