Skip to content Skip to sidebar Skip to footer

Cannot Plot With Matplotlib And Pandas

I am using OSX (Mojave 10.14.3) and am having a strange issue plotting a pandas (0.24.2) dataframe using matplotlib (3.0.3). I am using python 3.7.3. So, the code is as: import pan

Solution 1:

I am not sure if this will help anyone but I basically had to install python as a framework to make it work. I was using Anaconda, so something like:

conda install python.app
pythonw script.py  # note using pythonw

I, then, was able to get the plot to render correctly by using the macosx backend:

import matplotlib as mpl
mpl.use('MacOSX')

Post a Comment for "Cannot Plot With Matplotlib And Pandas"