File tree Expand file tree Collapse file tree
text_labels_and_annotations Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55
66This example demonstrates a working solution to issue #8576, providing full
77support 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>`.
1011
1112Renders a plot with shifted-sine curves along each column with
1213a unique markevery value for each sine curve.
Original file line number Diff line number Diff line change 77This includes highlighting specific points of interest and using various
88visual tools to call attention to this point. For a more complete and in-depth
99description 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>` .
1111"""
1212
1313import matplotlib .pyplot as plt
Original file line number Diff line number Diff line change 44=================================
55
66You 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
88backends, and requires that you have tex and the other dependencies
9- described at http://matplotlib.org/users/ usetex.html
9+ described in the :doc:`/tutorials/text/ usetex` tutorial
1010properly installed on your system. The first time you run a script
1111you will see a lot of output from tex and associated tools. The next
1212time, the run may be silent, as a lot of the information is cached.
Original file line number Diff line number Diff line change 44==============
55
66The 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
98process. That code defines a lot of preset tickers but was primarily
109designed to be user extensible.
1110
1211In 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.
1413"""
1514from matplotlib .ticker import FuncFormatter
1615import matplotlib .pyplot as plt
Original file line number Diff line number Diff line change 2222will be used. Then create the colorbar by calling
2323:class:`~matplotlib.colorbar.ColorbarBase` and specify axis, colormap, norm
2424and 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 .
2727"""
2828
2929import matplotlib .pyplot as plt
Original file line number Diff line number Diff line change 3838
3939All string specifications of color, other than "CN", are case-insensitive.
4040
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+
4147"CN" color selection
4248--------------------
4349
Original file line number Diff line number Diff line change 88------------------
99
1010The ``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).
1314
1415There are a number of pre-defined styles provided by matplotlib. For
1516example, there's a pre-defined style called "ggplot", which emulates the
183184# .. literalinclude:: ../../../matplotlibrc.template
184185#
185186#
186- # .. _matplotlibrc: http://matplotlib.org/users/customizing.html
187187# .. _ggplot: http://ggplot2.org/
188188# .. _R: https://www.r-project.org/
Original file line number Diff line number Diff line change 4242settings. The alternative is the object-oriented interface, which is also
4343very powerful, and generally more suitable for large application
4444development. 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
4747with the imperative-style approach:
4848"""
4949
Original file line number Diff line number Diff line change 2323# the current figure and plotting area, and the plotting
2424# functions are directed to the current axes (please note that "axes" here
2525# 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>`
2727# and not the strict mathematical term for more than one axis).
2828#
2929# .. note::
Original file line number Diff line number Diff line change 188188 `tex.stackexchange.com <http://tex.stackexchange.com/questions/7953>`_.
189189 Another way would be to "rasterize" parts of the graph causing problems
190190 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>` .
192192
193193* If you still need help, please see :ref:`reporting-problems`
194194
You can’t perform that action at this time.
0 commit comments