Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update matplotlib canonical link #3080

Merged
merged 2 commits into from Feb 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/source/conf.py
Expand Up @@ -254,7 +254,7 @@
"https://docs.python.org/3/": None,
"https://ipython.readthedocs.io/en/stable/": None,
"https://docs.scipy.org/doc/numpy/": None,
"https://matplotlib.org/": None,
"https://matplotlib.org/stable/": None,
"https://docs.astropy.org/en/stable": None,
"https://pandas.pydata.org/pandas-docs/stable": None,
"trident": ("https://trident.readthedocs.io/en/latest/", None),
Expand Down
2 changes: 1 addition & 1 deletion doc/source/cookbook/custom_colorbar_tickmarks.ipynb
Expand Up @@ -82,7 +82,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"To set custom tickmarks, simply call the `matplotlib` [`set_ticks`](https://matplotlib.org/api/colorbar_api.html#matplotlib.colorbar.ColorbarBase.set_ticks) and [`set_ticklabels`](https://matplotlib.org/api/colorbar_api.html#matplotlib.colorbar.ColorbarBase.set_ticklabels) functions."
"To set custom tickmarks, simply call the `matplotlib` [`set_ticks`](https://matplotlib.org/stable/api/colorbar_api.html#matplotlib.colorbar.ColorbarBase.set_ticks) and [`set_ticklabels`](https://matplotlib.org/stable/api/colorbar_api.html#matplotlib.colorbar.ColorbarBase.set_ticklabels) functions."
]
},
{
Expand Down
14 changes: 7 additions & 7 deletions doc/source/visualizing/plots.rst
Expand Up @@ -61,8 +61,8 @@ of fixed size. This is accomplished behind the scenes using

The :class:`~yt.visualization.plot_window.PlotWindow` class exposes the
underlying matplotlib
`figure <https://matplotlib.org/api/_as_gen/matplotlib.figure.Figure.html#matplotlib.figure.Figure>`_
and `axes <https://matplotlib.org/api/axes_api.html#matplotlib.axes.Axes>`_
`figure <https://matplotlib.org/stable/api/_as_gen/matplotlib.figure.Figure.html#matplotlib.figure.Figure>`_
and `axes <https://matplotlib.org/stable/api/axes_api.html#matplotlib.axes.Axes>`_
objects, making it easy to customize your plots and
add new annotations. See :ref:`matplotlib-customization` for more information.

Expand Down Expand Up @@ -850,8 +850,8 @@ accessed via the ``plots`` dictionary attached to each
In this example ``dens_plot`` is an instance of
:class:`~yt.visualization.plot_window.WindowPlotMPL`, an object that wraps the
matplotlib
`figure <https://matplotlib.org/api/_as_gen/matplotlib.figure.Figure.html#matplotlib.figure.Figure>`_
and `axes <https://matplotlib.org/api/axes_api.html#matplotlib.axes.Axes>`_
`figure <https://matplotlib.org/stable/api/_as_gen/matplotlib.figure.Figure.html#matplotlib.figure.Figure>`_
and `axes <https://matplotlib.org/stable/api/axes_api.html#matplotlib.axes.Axes>`_
objects. We can access these matplotlib primitives via attributes of
``dens_plot``.

Expand All @@ -862,8 +862,8 @@ objects. We can access these matplotlib primitives via attributes of
colorbar_axes = dens_plot.cax

These are the
`figure <https://matplotlib.org/api/_as_gen/matplotlib.figure.Figure.html#matplotlib.figure.Figure>`_
and `axes <https://matplotlib.org/api/axes_api.html#matplotlib.axes.Axes>`_
`figure <https://matplotlib.org/stable/api/_as_gen/matplotlib.figure.Figure.html#matplotlib.figure.Figure>`_
and `axes <https://matplotlib.org/stable/api/axes_api.html#matplotlib.axes.Axes>`_
objects that control the actual drawing of the plot. Arbitrary plot
customizations are possible by manipulating these objects. See
:ref:`matplotlib-primitives` for an example.
Expand Down Expand Up @@ -1194,7 +1194,7 @@ To change the text annotated text properties, we need to pass the matplotlib ``a

The above example will set the fontsize of annotation to 20, add a bounding box of red color and center align
horizontally and vertically. The is just an example to modify the text properties, for further options please check
`matplotlib.axes.Axes.text <https://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.text.html>`_.
`matplotlib.axes.Axes.text <https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.text.html>`_.

Altering Line Properties
~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion yt/visualization/plot_container.py
Expand Up @@ -399,7 +399,7 @@ def set_font(self, font_dict=None):
demi, bold, heavy, extra bold, or black

See the matplotlib font manager API documentation for more details.
https://matplotlib.org/api/font_manager_api.html
https://matplotlib.org/stable/api/font_manager_api.html

Notes
-----
Expand Down
2 changes: 1 addition & 1 deletion yt/visualization/profile_plotter.py
Expand Up @@ -1367,7 +1367,7 @@ def set_font(self, font_dict=None):
demi, bold, heavy, extra bold, or black

See the matplotlib font manager API documentation for more details.
https://matplotlib.org/api/font_manager_api.html
https://matplotlib.org/stable/api/font_manager_api.html

Notes
-----
Expand Down