Hi Team
I was using Anaconda and decided to ditch it in favour of just using Python / Idle.
I have ([PIP] reinstalled) all the modules I feel I will need, one of the foremost ones being [MatPlotLib], which installed/reintalled with zero issues, but!
I keep getting an error when I run the following code:
(from:Matplotlib Tutorial 19 - subplots - YouTube)
`import random
'import matplotlib.pyplot as plt from matplotlib import style`
`style.use(‘fivethirtyeight’)
fig = plt.figure()
def create_plots():
xs = [ ]
ys = [ ]
for i in range(10):
x = i
y = random.randrange(10)
xs.append(x)
ys.append(y)
return xs, ys`
ax1 = fig.add_subplot(211)
ax2 = fig.add_subplot(212)
x,y = create_plots()
ax1.plot(x,y)
x,y = create_plots()
ax2.plot(x,y)
plt.show
Now I get an error pointing to matplotlib:
================= RESTART: C:/Users/Me/pyProj/my_pyEnv/MyPy.py =================
Traceback (most recent call last):
File “C:/Users/Me/pyProj/my_pyEnv/MyPy.py”, line 2, in
import matplotlib.pyplot as plt
ModuleNotFoundError: No module named ‘matplotlib’
==========================================================================
Any assistance is appreciated
Cheers
Mark.