Getting started =============== Installation quick-start ------------------------ .. grid:: 1 1 2 2 .. grid-item:: Install using `pip `__: .. code-block:: bash pip install matplotlib .. grid-item:: Install using `conda `__: .. code-block:: bash conda install matplotlib Further details are available in the :doc:`Installation Guide `. Draw a first plot ----------------- Here is a minimal example plot: .. plot:: :include-source: :align: center import matplotlib.pyplot as plt import numpy as np x = np.linspace(0, 2 * np.pi, 200) y = np.sin(x) fig, ax = plt.subplots() ax.plot(x, y) plt.show() If a plot does not show up please check :ref:`troubleshooting-faq`. Where to go next ---------------- - Check out :doc:`Plot types ` to get an overview of the types of plots you can create with Matplotlib. - Learn Matplotlib from the ground up in the :doc:`Quick-start guide `.