[Matplotlib-users] Custom colorbar tick labeling

2008-10-31 Thread Scott Sinclair
Hi, There was a recent unanswered post on this topic. I hope the attached script is useful and makes it's way into the Matplotlib examples. Thanks for a great library, Scott Please find our Email Disclaimer here: http://www.ukzn.ac.za/disclaimer/ colorbar_tick_labelling_demo.py Description:

Re: [Matplotlib-users] no canvas reinitialization between calls to savefig

2008-10-31 Thread Jae-Joon Lee
I can reproduce Thomas' problem with Agg backend. It does not happen if frame_on is True. And I guess Thomas' guess in the first email might be right. I had a quick look at the mpl source and I don't think draw(), clf() or savefig() try to clear the canvas. The problem is not visible if frame_on

Re: [Matplotlib-users] no canvas reinitialization between calls to savefig

2008-10-31 Thread Thomas Pfaff
Hi, Thanks for the quick reply. My OS is Windows XP with Service Pack 3 I'm using an easy-install .egg distribution. Whether I downloaded it somewhere or simply installed it using easy-install, I don't remember. I have another version of matplotlib (0.91.2) installed, which does not seem to

Re: [Matplotlib-users] no canvas reinitialization between calls to savefig

2008-10-31 Thread John Hunter
On Fri, Oct 31, 2008 at 6:43 AM, Jae-Joon Lee [EMAIL PROTECTED] wrote: The Agg backend has a clear() method which fills the canvas with (1, 1, 1, 0). I tried to put this method in a few different places. It worked for savefig(), but I couldn't get it work in the interactive backend

Re: [Matplotlib-users] Custom colorbar tick labeling

2008-10-31 Thread Michael Droettboom
Thanks. I've committed this to SVN and should end up in the online docs next time they are regenerated. Cheers, Mike Scott Sinclair wrote: Hi, There was a recent unanswered post on this topic. I hope the attached script is useful and makes it's way into the Matplotlib examples. Thanks

Re: [Matplotlib-users] no canvas reinitialization between calls to savefig

2008-10-31 Thread Thomas Pfaff
Hi Jae-Joon, yes, that solved it. Thank you very much. The savefig command should have been inside the for-loop. Thomas -Original Message- From: Jae-Joon Lee [mailto:[EMAIL PROTECTED] Sent: Friday, October 31, 2008 12:43 PM To: Thomas Pfaff Cc: Michael Droettboom;

[Matplotlib-users] using ginput with images -- axes are resized?

2008-10-31 Thread Adam
hi, I am trying to use ginput with some images and for some reason it keeps changing the axes with the mouse click. I don't know if this is a feature or bug, but I would like it not to affect my images at all. here is a short example: #--- from pylab import ginput, imshow, rand t=rand(50,50)

Re: [Matplotlib-users] using ginput with images -- axes are resized?

2008-10-31 Thread Eric Firing
Adam wrote: hi, I am trying to use ginput with some images and for some reason it keeps changing the axes with the mouse click. I don't know if this is a feature or bug, but I would like it not to affect my images at all. Confirmed: it's a big bug. I suspect it has a simple fix, but I