Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/matplotlib/backends/backend_pgf.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,10 @@ def _print_pgf_to_fh(self, fh, *, bbox_inches_restore=None):
%% Make sure the required packages are loaded in your preamble
%% \\usepackage{pgf}
%%
%% Also ensure that all the required font packages are loaded; for instance,
%% the lmodern package is often necessary when using math font.
%% \\usepackage{lmodern}
%%
Comment thread
tacaswell marked this conversation as resolved.
Outdated
%% Figures using additional raster images can only be included by \\input if
%% they are in the same directory as the main LaTeX file. For loading figures
%% from other directories you can use the `import` package
Expand Down
5 changes: 5 additions & 0 deletions tutorials/text/pgf.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@
using either the ``rasterized=True`` keyword, or ``.set_rasterized(True)`` as
per :doc:`this example </gallery/misc/rasterization_demo>`.

* Various math font are compiled and rendered only if corresponding font
Comment thread
tacaswell marked this conversation as resolved.
Outdated
packages are loaded. The ``lmodern`` package is often required when using
math symbols. See `discussion <https://matrix.to/#/!BXmyZMTnRjWJldDRLV:gitter.im/$M7KxLQuyUosx2byFxIsKJE8QS_14NRiWqmmlb6nSIfE?via=gitter.im&via=matrix.org>`
Comment thread
uihsnv marked this conversation as resolved.
Outdated
for more details.

* If you still need help, please see :ref:`reporting-problems`

.. _LaTeX: http://www.tug.org
Expand Down