Re: [Matplotlib-users] Issue with imshow and usetex

2011-04-15 Thread Thomas Robitaille
Hi JJ, I just want to confirm that changing pswrite to ps2write fixes the issue for me. Since no-one else replied to this thread, is this something we should ask the ghostscript mailing list about? Cheers, Tom On 13 March 2011 10:01, Jae-Joon Lee lee.j.j...@gmail.com wrote: Okay, I just

Re: [Matplotlib-users] Issue with imshow and usetex

2011-03-13 Thread Jae-Joon Lee
Okay, I just confirmed that using a gs distiller greatly increases the file size with gs 9.0. I have no idea what's going on and I hope that someone more knowledgeable than me steps in. Meanwhile, using the ps2write device with gs seems to solve the issue (but I'm not sure of its consequences).

Re: [Matplotlib-users] Issue with imshow and usetex

2011-03-12 Thread Jae-Joon Lee
Note that, even with usetex=False, you have a large ps file when distiller is used . When usetex=True, the distiller is always used (if distiller=None, ghostscript is used). Therefore, my guess is that the large file size is results of distilling using the ghostscript. I wonder if this is an

Re: [Matplotlib-users] Issue with imshow and usetex

2011-03-12 Thread Thomas Robitaille
Hi Jae-Joon, Ok, that makes sense - I tried upgrading to 9.0.1 and it looks like there is still an issue: 6204test_1.eps 34104 test_2.eps Cheers, Tom On Mar 12, 2011, at 11:38 AM, Jae-Joon Lee wrote: Note that, even with usetex=False, you have a large ps file when distiller is used

Re: [Matplotlib-users] Issue with imshow and usetex

2011-03-11 Thread Thomas Robitaille
Hi Jae-Joon, I tried inserting: mpl.rc('ps', usedistiller=None) after importing matplotlib, and I get: $ du -sk *.eps 6204test_1.eps 34104 test_2.eps using 'ghostscript' I get: $ du -sk *.eps 34096 test_1.eps 34104 test_2.eps and using 'xpdf' raises an exception: File

Re: [Matplotlib-users] Issue with imshow and usetex

2011-03-08 Thread Jae-Joon Lee
With current master at git repo, I cannot reproduce this. Both test_1.eps and test_2.eps are ~4M in size. Can you check if the file size varies significantly with rc parameters ps.usedistiller? I'm not sure how text setting can affect the images. Regards, -JJ On Tue, Mar 1, 2011 at 7:23 AM,

[Matplotlib-users] Issue with imshow and usetex

2011-02-28 Thread Thomas Robitaille
Hi, In the following example: --- import numpy as np import matplotlib as mpl mpl.use('Agg') import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(1, 1, 1) ax.imshow(np.random.random((1024, 1024)), interpolation='nearest') fig.savefig('test_1.eps') mpl.rc('text',