PyCORN icon indicating copy to clipboard operation
PyCORN copied to clipboard

problem with plotting (matplotlib)

Open staalhandsken opened this issue 7 years ago • 6 comments

Hi Great script! everything works except for plotting. I dont know if it a script or pyhton error but i cannot import matplotlib.pyplot . Matplotlib imports fine

Did you ever have this issue ?

Thx

staalhandsken avatar Jan 15 '18 19:01 staalhandsken

Hi thanks - are you using Windows?

pyahmed avatar Jan 15 '18 20:01 pyahmed

Oh yes. Im using windows 10 with python 3.5

staalhandsken avatar Jan 15 '18 22:01 staalhandsken

Does the minimal example below work for you?

import matplotlib.pyplot as plt
plt.plot([1, 2, 3, 4])
plt.ylabel('some numbers')
plt.show()

source: https://matplotlib.org/tutorials/introductory/pyplot.html

pyahmed avatar Jan 16 '18 06:01 pyahmed

yes this works.

staalhandsken avatar Jan 16 '18 07:01 staalhandsken

I see - I was assuming a different Windows-specific error... will try to reproduce it in a Win10 VM.

pyahmed avatar Jan 18 '18 06:01 pyahmed

I just tried it in a clean Win10 VM, it works for me but considering that the minimal sample is working for you there might a bug somewhere.. just not sure where exactly.

pyahmed avatar Jan 24 '18 06:01 pyahmed