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 0fec213

Browse filesBrowse files
committed
Prepend underscore to variable name DOCUMENTCLASS
1 parent 4a4a41f commit 0fec213
Copy full SHA for 0fec213

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']}",
@@ -831,7 +831,7 @@ def print_pdf(self, fname_or_fh, *, metadata=None, **kwargs):
831831
self.print_pgf(tmppath / "figure.pgf", **kwargs)
832832
(tmppath / "figure.tex").write_text(
833833
"\n".join([
834-
DOCUMENTCLASS,
834+
_DOCUMENTCLASS,
835835
r"\usepackage[pdfinfo={%s}]{hyperref}" % pdfinfo,
836836
r"\usepackage[papersize={%fin,%fin}, margin=0in]{geometry}"
837837
% (w, h),
@@ -941,7 +941,7 @@ def _write_header(self, width_inches, height_inches):
941941
pdfinfo = ','.join(
942942
_metadata_to_str(k, v) for k, v in self._info_dict.items())
943943
latex_header = "\n".join([
944-
DOCUMENTCLASS,
944+
_DOCUMENTCLASS,
945945
r"\usepackage[pdfinfo={%s}]{hyperref}" % pdfinfo,
946946
r"\usepackage[papersize={%fin,%fin}, margin=0in]{geometry}"
947947
% (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.