You can get the Matplotlib version in Python by using the
__version__
attribute of the matplotlib
module. Here's how:Open a Python console or a Python script.
Import the
matplotlib
module:
pythonimport matplotlib
- Print the version of Matplotlib:
pythonprint(matplotlib.__version__)
This will print the version of Matplotlib that is currently installed on your system.
Alternatively, you can also use the following command to check the Matplotlib version from the command line:
python -c "import matplotlib; print(matplotlib.__version__)"
This will print the version of Matplotlib in your terminal.
Comments
Post a Comment