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

Remove the userdemo section in examples #25881

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
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: 0 additions & 2 deletions doc/users/prev_whats_new/whats_new_3.6.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -558,10 +558,8 @@ them in order to locate a required glyph.
fig = plt.figure(figsize=(4.75, 1.85))

text = "There are 几个汉字 in between!"
fig.text(0.05, 0.85, text, family=["WenQuanYi Zen Hei"])
fig.text(0.05, 0.65, text, family=["Noto Sans CJK JP"])
fig.text(0.05, 0.45, text, family=["DejaVu Sans", "Noto Sans CJK JP"])
fig.text(0.05, 0.25, text, family=["DejaVu Sans", "WenQuanYi Zen Hei"])

This currently works with the Agg (and all of the GUI embeddings), svg, pdf,
ps, and inline backends.
Expand Down
2 changes: 1 addition & 1 deletion galleries/users_explain/text/fonts.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
fig, ax = plt.subplots()
ax.text(
.5, .5, "There are 几个汉字 in between!",
family=['DejaVu Sans', 'WenQuanYi Zen Hei'],
family=['DejaVu Sans', 'Noto Sans CJK JP'],
ha='center'
)

Expand Down
8 changes: 4 additions & 4 deletions galleries/users_explain/text/pgf.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
When saving to ``.pgf``, the font configuration Matplotlib used for the
layout of the figure is included in the header of the text file.

.. literalinclude:: /gallery/userdemo/pgf_fonts.py
.. figure :: /gallery/userdemo/pgf_fonts.py
:end-before: fig.savefig


Expand All @@ -122,12 +122,12 @@

.. only:: html

.. literalinclude:: /gallery/userdemo/pgf_preamble_sgskip.py
.. figure :: /gallery/userdemo/pgf_preamble_sgskip.py
:end-before: fig.savefig

.. only:: latex

.. literalinclude:: /gallery/userdemo/pgf_preamble_sgskip.py
.. figure :: /gallery/userdemo/pgf_preamble_sgskip.py
:end-before: import matplotlib.pyplot as plt


Expand All @@ -141,7 +141,7 @@
Please note that when selecting pdflatex, the fonts and Unicode handling must
be configured in the preamble.

.. literalinclude:: /gallery/userdemo/pgf_texsystem.py
.. figure :: /gallery/userdemo/pgf_texsystem.py
:end-before: fig.savefig


Expand Down