31 Jan Run first Matplotlib program
In this lesson, learn how to run our first Matplotlib program after installing it. At the beginning of any Matplotlib program, we need to import the matplotlib library. Let’s see.
To run your first Matplotlib program on Anaconda, open a new Notebook after installing Anaconda shown before and import the library:
1 2 3 |
import matplotlib |
Before moving towards Plotting on Matplotlib, we will just print the current version we installed. Let us see the example:
1 2 3 4 |
import matplotlib print("Matplotlib Version = ",matplotlib.__version__) |
Output
1 2 3 |
Matplotlib Version = 3.8.2 |
If you liked the tutorial, spread the word and share the link and our website Studyopedia with others.
For Videos, Join Our YouTube Channel: Join Now
No Comments