dvipng version error running matplotlib on windows

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?

···

--
View this message in context: http://www.nabble.com/dvipng-version-error-running-matplotlib-on-windows-tf3078547.html#a8553205
Sent from the matplotlib - users mailing list archive at Nabble.com.

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

···

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?