Skip to content

Commit 0bbaaa9

Browse files
authored
Indicate a possible 'lmodern' requirement
1 parent cc85cce commit 0bbaaa9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/matplotlib/backends/backend_pgf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,10 @@ def _print_pgf_to_fh(self, fh, *, bbox_inches_restore=None):
777777
%% Make sure the required packages are loaded in your preamble
778778
%% \\usepackage{pgf}
779779
%%
780+
%% Also ensure that all the required font packages are loaded; for instance,
781+
%% the lmodern package is often necessary when using math font.
782+
%% \\usepackage{lmodern}
783+
%%
780784
%% Figures using additional raster images can only be included by \\input if
781785
%% they are in the same directory as the main LaTeX file. For loading figures
782786
%% from other directories you can use the `import` package

0 commit comments

Comments
 (0)