File tree Expand file tree Collapse file tree 11 files changed +26
-20
lines changed
text_labels_and_annotations Expand file tree Collapse file tree 11 files changed +26
-20
lines changed Original file line number Diff line number Diff line change 5
5
6
6
This example demonstrates a working solution to issue #8576, providing full
7
7
support of the markevery property for axes.prop_cycle assignments through
8
- rcParams. Makes use of the same list of markevery cases from
9
- https://matplotlib.org/examples/pylab_examples/markevery_demo.html
8
+ rcParams. Makes use of the same list of markevery cases from the
9
+ :doc:`markevery demo
10
+ </gallery/lines_bars_and_markers/markevery_demo>`.
10
11
11
12
Renders a plot with shifted-sine curves along each column with
12
13
a unique markevery value for each sine curve.
Original file line number Diff line number Diff line change 7
7
This includes highlighting specific points of interest and using various
8
8
visual tools to call attention to this point. For a more complete and in-depth
9
9
description of the annotation and text tools in :mod:`matplotlib`, see the
10
- `tutorial on annotation <http://matplotlib.org/users/ annotations.html>`_ .
10
+ :doc: `tutorial on annotation </tutorials/text/ annotations>` .
11
11
"""
12
12
13
13
import matplotlib .pyplot as plt
Original file line number Diff line number Diff line change 4
4
=================================
5
5
6
6
You can use TeX to render all of your matplotlib text if the rc
7
- parameter text.usetex is set. This works currently on the agg and ps
7
+ parameter `` text.usetex`` is set. This works currently on the agg and ps
8
8
backends, and requires that you have tex and the other dependencies
9
- described a
10000
t http://matplotlib.org/users/ usetex.html
9
+ described in the :doc:`/tutorials/text/ usetex` tutorial
10
10
properly installed on your system. The first time you run a script
11
11
you will see a lot of output from tex and associated tools. The next
12
12
time, the run may be silent, as a lot of the information is cached.
Original file line number Diff line number Diff line change 4
4
==============
5
5
6
6
The new ticker code was designed to explicitly support user customized
7
- ticking. The documentation
8
- http://matplotlib.org/api/ticker_api.html#module-matplotlib.ticker details this
7
+ ticking. The documentation of :mod:`matplotlib.ticker` details this
9
8
process. That code defines a lot of preset tickers but was primarily
10
9
designed to be user extensible.
11
10
12
11
In this example a user defined function is used to format the ticks in
13
- millions of dollars on the y axis
12
+ millions of dollars on the y axis.
14
13
"""
15
14
from matplotlib .ticker import FuncFormatter
16
15
import matplotlib .pyplot as plt
Original file line number Diff line number Diff line change 22
22
will be used. Then create the colorbar by calling
23
23
:class:`~matplotlib.colorbar.ColorbarBase` and specify axis, colormap, norm
24
24
and orientation as parameters. Here we create a basic continuous colorbar
25
- with ticks and labels. More information on the colorbar API can be found
26
- `here <https:// matplotlib.org/api/colorbar_api.html>`_ .
25
+ with ticks and labels. For more information see the
26
+ :mod:`~ matplotlib.colorbar` API .
27
27
"""
28
28
29
29
import matplotlib .pyplot as plt
Original file line number Diff line number Diff line change 38
38
39
39
All string specifications of color, other than "CN", are case-insensitive.
40
40
41
+ For more information on colors in matplotlib see
42
+
43
+ * the :doc:`/gallery/color/color_demo` example;
44
+ * the `matplotlib.colors` API;
45
+ * the :doc:`/gallery/color/named_colors` example.
46
+
41
47
"CN" color selection
42
48
--------------------
43
49
Original file line number Diff line number Diff line change 8
8
------------------
9
9
10
10
The ``style`` package adds support for easy-to-switch plotting "styles" with
11
- the same parameters as a matplotlibrc_ file (which is read at startup to
12
- configure matplotlib).
11
+ the same parameters as a
12
+ :ref:`matplotlib rc <customizing-with-matplotlibrc-files>` file (which is read
13
+ at startup to configure matplotlib).
13
14
14
15
There are a number of pre-defined styles provided by matplotlib. For
15
16
example, there's a pre-defined style called "ggplot", which emulates the
183
184
# .. literalinclude:: ../../../matplotlibrc.template
184
185
#
185
186
#
186
- # .. _matplotlibrc: http://matplotlib.org/users/customizing.html
187
187
# .. _ggplot: http://ggplot2.org/
188
188
# .. _R: https://www.r-project.org/
Original file line number Diff line number Diff line change 42
42
settings. The alternative is the object-oriented interface, which is also
43
43
very powerful, and generally more suitable for large application
44
44
development. If you'd like to learn about the object-oriented
45
- interface, a great place to start is our `FAQ on usage
46
- <http://matplotlib.org/faq/usage_faq.html>`_ . For now, let's get on
45
+ interface, a great place to start is our :doc:`Usage guide
46
+ </tutorials/introductory/usage>` . For now, let's get on
47
47
with the imperative-style approach:
48
48
"""
49
49
Original file line number Diff line number Diff line change 23
23
# the current figure and plotting area, and the plotting
24
24
# functions are directed to the current axes (please note that "axes" here
25
25
# and in most places in the documentation refers to the *axes*
26
- # `part of a figure <http://matplotlib.org/faq/usage_faq.html#parts-of-a-figure>`__
26
+ # :ref: `part of a figure <figure_parts>`
27
27
# and not the strict mathematical term for more than one axis).
28
28
#
29
29
# .. note::
Original file line number Diff line number Diff line change 188
188
`tex.stackexchange.com <http://tex.stackexchange.com/questions/7953>`_.
189
189
Another way would be to "rasterize" parts of the graph causing problems
190
190
using either the ``rasterized=True`` keyword, or ``.set_rasterized(True)`` as per
191
- `this example <http://matplotlib.org/examples/ misc/rasterization_demo.html>`_ .
191
+ :doc: `this example </gallery/ misc/rasterization_demo>` .
192
192
193
193
* If you still need help, please see :ref:`reporting-problems`
194
194
Original file line number Diff line number Diff line change 21
21
22
22
The user has a great deal of control over text properties (font size, font
23
23
weight, text location and color, etc.) with sensible defaults set in
24
- the `rc file <http://matplotlib.org/users/ customizing.html >`.
24
+ the :doc: `rc file </tutorials/introductory/ customizing>`.
25
25
And significantly, for those interested in mathematical
26
26
or scientific figures, matplotlib implements a large number of TeX
27
- math symbols and commands, supporting :ref :`mathematical expressions
28
- <sphx_glr_tutorials_text_mathtext.py >` anywhere in your figure.
27
+ math symbols and commands, supporting :doc :`mathematical expressions
28
+ </tutorials/text/mathtext >` anywhere in your figure.
29
29
30
30
31
31
Basic text commands
You can’t perform that action at this time.
0 commit comments