|
From: John H. <jdh...@ac...> - 2006-02-07 18:48:58
|
>>>>> "Robert" == Robert Hetland <he...@ta...> writes:
Robert> dvipng is producing scaled images that look correct.
Robert> This command (at a variety of resolutions) produces
Robert> nice, dithered output, even when using tex files from
Robert> tex_cache. See attached '3.0' at dpi=150. Lovely...
Try hard coding the full path to dvipng from the command line and in
texmanager to make sure you are using the version you think you are.
Also, flush the tex cache.
Find this bit of code in texmanager
vers = self.get_dvipng_version()
#print 'dvipng version', vers
if vers<'1.6':
# hack the alpha channel as described in comment above
alpha = sqrt(1-X[:,:,0])
else:
alpha = X[:,:,-1]
print the dvipng version in texmanager. Also, see which part of the
conditional you are executing, and then manually try forcing both with
if 1:
# hack the alpha channel as described in comment above
alpha = sqrt(1-X[:,:,0])
else:
alpha = X[:,:,-1]
and
if 0:
# hack the alpha channel as described in comment above
alpha = sqrt(1-X[:,:,0])
else:
alpha = X[:,:,-1]
Make sure you flush the tex cache and rerun matplotlib from the shell
(not ipython) with each test.
JDH
|