On Tuesday 23 January 2007 20:09, bernski wrote:
> I am getting a dvipng version error when I run:
>
> import Numeric,matplotlib
> matplotlib.use('Agg')
> from matplotlib import rc
> rc('text', usetex=True)
> import pylab
>
> pylab.figure(num=1,figsize=(6,4))
> pylab.plot(Numeric.arange(10), Numeric.arange(10)**2)
> pylab.axis( (0,9,0,81) )
> pylab.xlabel(r'$width$')
> pylab.ylabel(r'$Height (km)$')
>
> filename='c:/test.png'
> pylab.savefig(filename,dpi=100)
> pylab.clf()
>
> here is a bit of the error message:
>
> File "C:\Python24\Lib\site-packages\matplotlib\texmanager.py", line 58, in
> get_dvipng_version
>     raise RuntimeError('Could not obtain dvipng version')
> RuntimeError: Could not obtain dvipng version
>
> I have  winXP, python2.4, matplotlib0.87, miktex2.5.  I downloaded
> dvipng1.9 from sourceforge, but have no idea what to do with it.  do i need
> a 'c' compiler to install it?

See http://www.scipy.org/Cookbook/Matplotlib/UsingTex for information about 
package requirements and configuration. If you can't get dvipng through 
MikTeX, and the sourceforge page doesnt distribute a windows executable, then 
you will have to compile it.

Darren

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to