Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1c96c27

Browse files
committed
Make mathtext slightly smaller.
svn path=/trunk/matplotlib/; revision=5584
1 parent bf8f8cb commit 1c96c27

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

doc/sphinxext/mathpng.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,11 @@ def latex2png(latex, filename, fontset='cm'):
117117
orig_fontset = rcParams['mathtext.fontset']
118118
rcParams['mathtext.fontset'] = fontset
119119
if os.path.exists(filename):
120-
depth = mathtext_parser.get_depth(latex, dpi=120)
120+
depth = mathtext_parser.get_depth(latex, dpi=100)
121121
else:
122122
print latex.encode("ascii", "backslashreplace")
123123
try:
124-
depth = mathtext_parser.to_png(filename, latex, dpi=120)
124+
depth = mathtext_parser.to_png(filename, latex, dpi=100)
125125
except:
126126
warnings.warn("Could not render math expression %s" % latex,
127127
Warning)

0 commit comments

Comments
 (0)