To test my matplot lib, I am getting an era code TypeError: cannot unpack non-iterable Axes object for the code in line 5: fig, simple_chart = matplotlib.pyplot.subplot() Can you help me figure out where I'm going wrong please?
try this: ------------ import matplotlib.pyplot as plt data = (3, 6, 9, 12) # Create a figure and a single subplot fig, simple_chart = plt.subplots() # Plot your data simple_chart.plot(data) # Show the plot plt.show() ------ Note: Line 5 was wrong for me too, the fine detail of 'subplot' is not a 'x' on the end but a 's'.
00:04 Installing Matplotlib in Visual Studio Code on Mac 01:33 Creating and activating Python virtual environment in Visual Studio Code on Mac. 02:59 Installing Python libraries in Visual Studio Code on Mac. 04:54 Setting up a virtual environment in Visual Studio Code 06:24 Installing scipy in Visual Studio Code on a Mac 07:53 Installing and activating virtual environment in Visual Studio Code 10:04 Install Visual Studio Code on Mac and set up Python environment. 11:42 Activating virtual environment and installing Python libraries in Visual Studio Code
will the libraries be accessible in any file we make in the future or is it only available in the virtual environment we created? I don't want to have to install the libraries everytime
working through my errors. first, started with determining how many versions of Python installed and making sure only one version (I had two). secondly, where I’m stuck now, I get a “cannot unpack non-iterable Axes object”. good luck with wherever your issues lie. okay, worked through this: instead of “subplot” write “subplots”. now work for me.
You were great on this one. I was having lots of problems with understanding how to make numpy work on vscode. Thank you so very much.
Thank you so much! I'm new to python and all these imports and installs are tricky for me, so this video really helped out!
Best video explained very easily ❤
Wow, these videos were pretty helpful. Thanks!
Thank you! This was so helpful!
Thank you, your videos are super helpful :D
To test my matplot lib, I am getting an era code TypeError: cannot unpack non-iterable Axes object for the code in line 5: fig, simple_chart = matplotlib.pyplot.subplot() Can you help me figure out where I'm going wrong please?
try this:
------------
import matplotlib.pyplot as plt
data = (3, 6, 9, 12)
# Create a figure and a single subplot
fig, simple_chart = plt.subplots()
# Plot your data
simple_chart.plot(data)
# Show the plot
plt.show()
------
Note: Line 5 was wrong for me too, the fine detail of 'subplot' is not a 'x' on the end but a 's'.
try adding 's' to .subplot()
it should be
fig, simple_chart = matplotlib.pyplot.subplots()
thank you!! super helpful
Thank you so much for this..
Really helpful! Thank you!
is it okay to install the other python libraries in one folder all at once
thank you so much!!!!!!!
hello, i try on window but i don't see bin folder just. include/Lib/Scripts
thank you !! Really worth checking out
00:04 Installing Matplotlib in Visual Studio Code on Mac
01:33 Creating and activating Python virtual environment in Visual Studio Code on Mac.
02:59 Installing Python libraries in Visual Studio Code on Mac.
04:54 Setting up a virtual environment in Visual Studio Code
06:24 Installing scipy in Visual Studio Code on a Mac
07:53 Installing and activating virtual environment in Visual Studio Code
10:04 Install Visual Studio Code on Mac and set up Python environment.
11:42 Activating virtual environment and installing Python libraries in Visual Studio Code
Lifesaver. Thanks
very helpful.Thanks alot
will the libraries be accessible in any file we make in the future or is it only available in the virtual environment we created? I don't want to have to install the libraries everytime
I think if u install it without virtual e it would be accessible everywhere?
I try it right now and it doesn't"t work how can I fixe it please?
lifeeee saverr. Thanks
how to install pillow library?
Thank you!
thank you sur !
So good, thanks:)
this is not working for me
I try it right now and it doesn't"t work how u fixe it please?
working through my errors. first, started with determining how many versions of Python installed and making sure only one version (I had two). secondly, where I’m stuck now, I get a “cannot unpack non-iterable Axes object”. good luck with wherever your issues lie.
okay, worked through this: instead of “subplot” write “subplots”. now work for me.
Anyone having error results from loading the matplotlib library using an M2 MacBook Air?
why does mine say that python3.9 command not found
use python3 instead that worked for me
@@iantan7828 thanks
Not working still :(
I try it right now and it doesn't"t work how u fixe it please?
I keep getting ModuleNotFoundError: No module named 'matplotlib'?
same issue. got any solution , if any do tell me . Thank you :).