bugl
bugl
HomeLearnPatternsPathsSearch
HomeLearnPatternsPathsSearch

Loading lesson path

Learn/Python/Data Science and Scientific Python
Python•Data Science and Scientific Python

Matplotlib Getting Started

Flash cards

Review the key moves

1/4
Core idea

What is the main idea behind Matplotlib Getting Started?

Lesson checks

Practice each idea before moving on

Short Mimo-style checks built from this lesson's code, terms, and sequence.

1Quick choice

Which statement best captures the main point of this lesson?

2Fill blank

Complete the missing token from the example code.

>___ install matplotlib
3Order

Put the learning moves in the order that makes the concept easiest to apply.

If you have Python and PIP already installed on a system, then installation of Matplotlib is very easy.
Checking Matplotlib Version
Installation of Matplotlib

Installation of Matplotlib

If you have Python and PIP already installed on a system, then installation of Matplotlib is very easy.

Install it using this command

C:\Users\
Your Name
>pip install matplotlib

If this command fails, then use a python distribution that already has Matplotlib installed, like Anaconda, Spyder etc.

Import Matplotlib

Once Matplotlib is installed, import it in your applications by adding the import module statement:

import matplotlib

Now Matplotlib is imported and ready to use:

Checking Matplotlib Version

The version string is stored under version attribute.

Example

import matplotlib
print(matplotlib.__version__)

Note

two underscore characters are used in version .

Previous

Pandas Tutorial

Next

Machine Learning - Mean Median Mode