SourceForge logo
SourceForge logo
Menu

matplotlib-checkins

From: <md...@us...> - 2008年08月12日 17:58:03
Revision: 6025
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6025&view=rev
Author: mdboom
Date: 2008年08月12日 17:58:00 +0000 (2008年8月12日)
Log Message:
-----------
Remove old dvipng support in mathmpl.py, since it is now in Sphinx core.
Modified Paths:
--------------
 trunk/matplotlib/doc/sphinxext/mathmpl.py
Modified: trunk/matplotlib/doc/sphinxext/mathmpl.py
===================================================================
--- trunk/matplotlib/doc/sphinxext/mathmpl.py	2008年08月12日 17:57:14 UTC (rev 6024)
+++ trunk/matplotlib/doc/sphinxext/mathmpl.py	2008年08月12日 17:58:00 UTC (rev 6025)
@@ -86,25 +86,6 @@
 LaTeXTranslator.visit_latex_math = visit_latex_math_latex
 LaTeXTranslator.depart_latex_math = depart_latex_math_latex
 
-from os.path import isfile
-
-# This calls out to LaTeX to render the expression
-def latex2png(latex, name):
- f = open('math.tex', 'w')
- f.write(r"""\documentclass[12pt]{article}
- \pagestyle{empty}
- \begin{document}""")
- if inline:
- f.write('$%s$' % latex)
- else:
- f.write(r'\[ %s \]' % latex)
- f.write('\end{document}')
- f.close()
- os.system('latex --interaction=nonstopmode math.tex > /dev/null')
- os.system('dvipng -bgTransparent -Ttight --noghostscript -l10 ' +
- '-o %s math.dvi > /dev/null' % name)
-
-
 from matplotlib import rcParams
 from matplotlib.mathtext import MathTextParser
 rcParams['mathtext.fontset'] = 'cm'
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <md...@us...> - 2008年08月13日 18:10:38
Revision: 6034
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6034&view=rev
Author: mdboom
Date: 2008年08月13日 18:10:33 +0000 (2008年8月13日)
Log Message:
-----------
Quiet the math -> png conversion.
Modified Paths:
--------------
 trunk/matplotlib/doc/sphinxext/mathmpl.py
Modified: trunk/matplotlib/doc/sphinxext/mathmpl.py
===================================================================
--- trunk/matplotlib/doc/sphinxext/mathmpl.py	2008年08月13日 16:23:48 UTC (rev 6033)
+++ trunk/matplotlib/doc/sphinxext/mathmpl.py	2008年08月13日 18:10:33 UTC (rev 6034)
@@ -100,7 +100,6 @@
 if os.path.exists(filename):
 depth = mathtext_parser.get_depth(latex, dpi=100)
 else:
- print latex.encode("ascii", "backslashreplace")
 try:
 depth = mathtext_parser.to_png(filename, latex, dpi=100)
 except:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /