Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 49256f2

Browse filesBrowse files
committed
Prepend underscore to variable name DOCUMENTCLASS
1 parent 5d0852f commit 49256f2
Copy full SHA for 49256f2

File tree

1 file changed

+4
-4
lines changed
Filter options

1 file changed

+4
-4
lines changed

‎lib/matplotlib/backends/backend_pgf.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_pgf.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
_log = logging.getLogger(__name__)
3030

3131

32-
DOCUMENTCLASS = r"\documentclass{article}"
32+
_DOCUMENTCLASS = r"\documentclass{article}"
3333

3434

3535
# Note: When formatting floating point values, it is important to use the
@@ -202,7 +202,7 @@ class LatexManager:
202202
@staticmethod
203203
def _build_latex_header():
204204
latex_header = [
205-
DOCUMENTCLASS,
205+
_DOCUMENTCLASS,
206206
# Include TeX program name as a comment for cache invalidation.
207207
# TeX does not allow this to be the first line.
208208
rf"% !TeX program = {mpl.rcParams['pgf.texsystem']}",
@@ -827,7 +827,7 @@ def print_pdf(self, fname_or_fh, *, metadata=None, **kwargs):
827827
self.print_pgf(tmppath / "figure.pgf", **kwargs)
828828
(tmppath / "figure.tex").write_text(
829829
"\n".join([
830-
DOCUMENTCLASS,
830+
_DOCUMENTCLASS,
831831
r"\usepackage[pdfinfo={%s}]{hyperref}" % pdfinfo,
832832
r"\usepackage[papersize={%fin,%fin}, margin=0in]{geometry}"
833833
% (w, h),
@@ -937,7 +937,7 @@ def _write_header(self, width_inches, height_inches):
937937
pdfinfo = ','.join(
938938
_metadata_to_str(k, v) for k, v in self._info_dict.items())
939939
latex_header = "\n".join([
940-
DOCUMENTCLASS,
940+
_DOCUMENTCLASS,
941941
r"\usepackage[pdfinfo={%s}]{hyperref}" % pdfinfo,
942942
r"\usepackage[papersize={%fin,%fin}, margin=0in]{geometry}"
943943
% (width_inches, height_inches),

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.