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 e423cdf

Browse filesBrowse files
committed
use class var rather than self for texmanager hack state
svn path=/trunk/matplotlib/; revision=8487
1 parent 921e87c commit e423cdf
Copy full SHA for e423cdf

File tree

Expand file treeCollapse file tree

2 files changed

+6
-6
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+6
-6
lines changed

‎examples/pylab_examples/tex_demo.py

Copy file name to clipboardExpand all lines: examples/pylab_examples/tex_demo.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@
2929
title(r"\TeX\ is Number $\displaystyle\sum_{n=1}^\infty\frac{-e^{i\pi}}{2^n}$!",
3030
fontsize=16, color='r')
3131
grid(True)
32-
32+
#savefig('tex_demo')
3333
show()

‎lib/matplotlib/texmanager.py

Copy file name to clipboardExpand all lines: lib/matplotlib/texmanager.py
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class TexManager:
9292
os.mkdir(texcache)
9393

9494
_dvipng_hack_alpha = None
95-
95+
#_dvipng_hack_alpha = dvipng_hack_alpha()
9696
# mappable cache of
9797
rgba_arrayd = {}
9898
grey_arrayd = {}
@@ -455,7 +455,7 @@ def make_png(self, tex, fontsize, dpi):
455455
report = 'No dvipng error report available.'
456456
if exit_status:
457457
raise RuntimeError('dvipng was not able to \
458-
process the flowing file:\n%s\nHere is the full report generated by dvipng: \
458+
process the following file:\n%s\nHere is the full report generated by dvipng: \
459459
\n\n'% dvifile + report)
460460
else: mpl.verbose.report(report, 'debug')
461461
try: os.remove(outfile)
@@ -516,9 +516,9 @@ def get_grey(self, tex, fontsize=None, dpi=None):
516516
if rcParams['text.dvipnghack'] is not None:
517517
hack = rcParams['text.dvipnghack']
518518
else:
519-
if self._dvipng_hack_alpha is None:
520-
self._dvipng_hack_alpha = dvipng_hack_alpha()
521-
hack = self._dvipng_hack_alpha
519+
if TexManager._dvipng_hack_alpha is None:
520+
TexManager._dvipng_hack_alpha = dvipng_hack_alpha()
521+
hack = TexManager._dvipng_hack_alpha
522522

523523

524524
if hack:

0 commit comments

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