@@ -10,7 +10,7 @@ and :doc:`Axes <../axes/index>` are Artists, and generally contain
10
10
11
11
12
12
Creating Artists
13
- ~~~~~~~~~~~~~~~~
13
+ ^^^^^^^^^^^^^^^^
14
14
15
15
Usually we do not instantiate Artists directly, but rather use a plotting
16
16
method on `~.axes.Axes `. Some examples of plotting methods and the Artist
@@ -58,7 +58,7 @@ Artist via `~.Axes.get_lines()`:
58
58
Line2D(example)
59
59
60
60
Changing Artist properties
61
- ~~~~~~~~~~~~~~~~~~~~~~~~~~
61
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
62
62
63
63
Getting the ``lines `` object gives us access to all the properties of the
64
64
Line2D object. So if we want to change the *linewidth * after the fact, we can do so using `.Artist.set `.
@@ -132,7 +132,7 @@ Note most Artists also have a distinct list of setters; e.g.
132
132
`.Line2D.set_color ` or `.Line2D.set_linewidth `.
133
133
134
134
Changing Artist data
135
- ~~~~~~~~~~~~~~~~~~~~
135
+ ^^^^^^^^^^^^^^^^^^^^
136
136
137
137
In addition to styling properties like *color * and *linewidth *, the Line2D
138
138
object has a *data * property. You can set the data after the line has been
@@ -149,7 +149,7 @@ same line is shown evolving over time (see :doc:`../animations/index`)
149
149
lines[0].set_data([x, np.cos(x)])
150
150
151
151
Manually adding Artists
152
- ~~~~~~~~~~~~~~~~~~~~~~~
152
+ ^^^^^^^^^^^^^^^^^^^^^^^
153
153
154
154
Not all Artists have helper methods, or you may want to use a low-level method
155
155
for some reason. For example the `.patches.Circle ` Artist does not have a
@@ -178,7 +178,7 @@ be clipped, as is the case above for the ``clipped_circle`` patch.
178
178
See :ref: `artist_reference ` for other patches.
179
179
180
180
Removing Artists
181
- ~~~~~~~~~~~~~~~~
181
+ ^^^^^^^^^^^^^^^^
182
182
183
183
Sometimes we want to remove an Artist from a figure without re-specifying the
184
184
whole figure from scratch. Most Artists have a usable *remove * method that
0 commit comments