|
29 | 29 | _log = logging.getLogger(__name__)
|
30 | 30 |
|
31 | 31 |
|
32 |
| -DOCUMENTCLASS = r"\documentclass{article}" |
| 32 | +_DOCUMENTCLASS = r"\documentclass{article}" |
33 | 33 |
|
34 | 34 |
|
35 | 35 | # Note: When formatting floating point values, it is important to use the
|
@@ -202,7 +202,7 @@ class LatexManager:
|
202 | 202 | @staticmethod
|
203 | 203 | def _build_latex_header():
|
204 | 204 | latex_header = [
|
205 |
| - DOCUMENTCLASS, |
| 205 | + _DOCUMENTCLASS, |
206 | 206 | # Include TeX program name as a comment for cache invalidation.
|
207 | 207 | # TeX does not allow this to be the first line.
|
208 | 208 | rf"% !TeX program = {mpl.rcParams['pgf.texsystem']}",
|
@@ -831,7 +831,7 @@ def print_pdf(self, fname_or_fh, *, metadata=None, **kwargs):
|
831 | 831 | self.print_pgf(tmppath / "figure.pgf", **kwargs)
|
832 | 832 | (tmppath / "figure.tex").write_text(
|
833 | 833 | "\n".join([
|
834 |
| - DOCUMENTCLASS, |
| 834 | + _DOCUMENTCLASS, |
835 | 835 | r"\usepackage[pdfinfo={%s}]{hyperref}" % pdfinfo,
|
836 | 836 | r"\usepackage[papersize={%fin,%fin}, margin=0in]{geometry}"
|
837 | 837 | % (w, h),
|
@@ -941,7 +941,7 @@ def _write_header(self, width_inches, height_inches):
|
941 | 941 | pdfinfo = ','.join(
|
942 | 942 | _metadata_to_str(k, v) for k, v in self._info_dict.items())
|
943 | 943 | latex_header = "\n".join([
|
944 |
| - DOCUMENTCLASS, |
| 944 | + _DOCUMENTCLASS, |
945 | 945 | r"\usepackage[pdfinfo={%s}]{hyperref}" % pdfinfo,
|
946 | 946 | r"\usepackage[papersize={%fin,%fin}, margin=0in]{geometry}"
|
947 | 947 | % (width_inches, height_inches),
|
|
0 commit comments