[TriPython] Help with matplotlib plotting from pandas (installed by conda)

Art artem.nesterenko at gmail.com
Mon Jan 21 22:13:14 EST 2019


Your code works fine for me. I can see the chart. Here're my imports:

import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline

- Art.

Art Nestsiarenka
email: artem.nesterenko at gmail.com





On Mon, Jan 21, 2019 at 7:19 PM David Handy <david at handysoftware.com> wrote:

>    Hi Python / data science friends -
>
>
>
>    I'm switching to use conda instead of pip, at least for this particular
>    data science project. I installed pandas, ipython matplotlib, and am
>    working through the pandas intro:
>    http://pandas.pydata.org/pandas-docs/stable/10min.html
>
>
>
>    Everything seems to be working fine except plotting:
>
>
>
>    In [35]: ts = pd.Series(np.random.randn(1000),
>    index=pd.date_range('1/1/2000', p
>        ...: eriods=1000))
>
>    In [36]: ts = ts.cumsum()
>
>    In [37]: ts.plot()
>    Out[37]: <matplotlib.axes._subplots.AxesSubplot at 0x7f8c78066190>
>
>
>
>    ... and that's it. No window pops up, nothing gets displayed.
>
>
>
>    I'm running Fedora Linux.
>
>
>
>    What basic thing am I missing? Was I supposed to install something
> related
>    to Tkinter to plot via tkinter?
>
>
>
>    Thanks,
>
>    David H
>
>
> _______________________________________________
> TriZPUG mailing list
> TriZPUG at python.org
> https://mail.python.org/mailman/listinfo/trizpug
> http://tripython.org is the Triangle Python Users Group
>
-------------- next part --------------
   Your code works fine for me. I can see the chart. Here're my imports:
   import pandas as pd
   import numpy as np
   import matplotlib.pyplot as plt
   %matplotlib inline
   - Art.
   Art Nestsiarenka
   email: [1]artem.nesterenko at gmail.com

   On Mon, Jan 21, 2019 at 7:19 PM David Handy <[2]david at handysoftware.com>
   wrote:

     ** **Hi Python / data science friends -

     ** **I'm switching to use conda instead of pip, at least for this
     particular
     ** **data science project. I installed pandas, ipython matplotlib, and
     am
     ** **working through the pandas intro:
     ** **[3]http://pandas.pydata.org/pandas-docs/stable/10min.html

     ** **Everything seems to be working fine except plotting:

     ** **In [35]: ts = pd.Series(np.random.randn(1000),
     ** **index=pd.date_range('1/1/2000', p
     ** ** ** **...: eriods=1000))

     ** **In [36]: ts = ts.cumsum()

     ** **In [37]: ts.plot()
     ** **Out[37]: <matplotlib.axes._subplots.AxesSubplot at 0x7f8c78066190>

     ** **... and that's it. No window pops up, nothing gets displayed.

     ** **I'm running Fedora Linux.

     ** **What basic thing am I missing? Was I supposed to install something
     related
     ** **to Tkinter to plot via tkinter?

     ** **Thanks,

     ** **David H

     _______________________________________________
     TriZPUG mailing list
     [4]TriZPUG at python.org
     [5]https://mail.python.org/mailman/listinfo/trizpug
     [6]http://tripython.org is the Triangle Python Users Group

References

   Visible links
   1. mailto:artem.nesterenko at gmail.com
   2. mailto:david at handysoftware.com
   3. http://pandas.pydata.org/pandas-docs/stable/10min.html
   4. mailto:TriZPUG at python.org
   5. https://mail.python.org/mailman/listinfo/trizpug
   6. http://tripython.org/


More information about the TriZPUG mailing list