1
- Plotting commands summary
2
- =========================
1
+ Below we describe several common approaches to plotting with Matplotlib.
2
+
3
+ .. contents ::
4
+
5
+ The Pyplot API
6
+ --------------
3
7
4
8
The :mod: `matplotlib.pyplot ` module contains functions that allow you to generate
5
9
many kinds of plots quickly. For examples that showcase the use
6
10
of the :mod: `matplotlib.pyplot ` module, see the
7
11
:ref: `sphx_glr_tutorials_01_introductory_pyplot.py `
8
- or the :ref: `pyplots_examples `.
12
+ or the :ref: `pyplots_examples `. We also recommend that you look into
13
+ the object-oriented approach to plotting, described below.
14
+
15
+ .. currentmodule :: matplotlib.pyplot
16
+
17
+ .. autofunction :: plotting
9
18
10
19
The Object-Oriented API
11
20
-----------------------
21
+
12
22
Most of these functions also exist as methods in the
13
23
:class: `matplotlib.axes.Axes ` class. You can use them with the
14
24
so-called "Object Oriented" approach to Matplotlib.
@@ -19,11 +29,13 @@ we recommend using the object-oriented approach for more control
19
29
and customization of your plots. For some examples of the OO approach
20
30
to Matplotlib, see the :ref: `api_examples ` examples.
21
31
22
- The Pyplot API
23
- --------------
32
+ Colors in Matplotlib
33
+ --------------------
24
34
25
- .. currentmodule :: matplotlib.pyplot
35
+ There are many colormaps you can use to map data onto color values.
36
+ Below we list several ways in which color can be utilized in Matplotlib.
26
37
27
- .. autofunction :: plotting
38
+ For a more in-depth look at colormaps, see the
39
+ :ref: `sphx_glr_tutorials_colors_colormaps.py ` tutorial.
28
40
29
41
.. autofunction :: colormaps
0 commit comments