Re: [matplotlib-devel] Bug with restore_background when mpl is embedded in wxpython

2009-05-10 Thread Elan Pavlov
Hi John and Jae-Joon,
While it hardly solves *all* of the issues I've been having it does work 
for this problem:) Thanks a ton. As for committing it to the repository 
I'd be honored if Jae Joon agrees. Should I clean it up and remove the 
debugging prints?

Elan

"If stupidity got us into this mess, why can't it get us out?"
- Will Rogers

On Sat, 9 May 2009, John Hunter wrote:

> On Sat, May 9, 2009 at 12:08 PM, Jae-Joon Lee  wrote:
>> Here is a slightly modified version of your script which works for me.
>>
>> I don't think this is the bug in mpl. Note that the ax.bbox does
>> change if the canvas size change. In your original script, the
>> copy_from_bbox is called before frame.Show() and this seems to cause a
>> mismatching bbox.
>>
>> My modified example is also not perfect. A new background image needs
>> to be saved whenever ax.bbox changes (e.g. when resizing canvas).
>
> probably  best way to do this is to connect to the draw_event, and
> update the background on the draw_event.  I've updated the example and
> attached it -- do you mind if I commit it to the mpl examples dir (and
> does this solve all the issues you are having)?
>
> JDH
>

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] Patch adding minor ticks that autoscale

2009-05-10 Thread Neil Crighton
Hello,

It has always bugged me that it's not easy to display minor ticks in matplotlib,
and there is no easy way to make minor ticks autoscale the same way major ticks 
do.

I just added a patch to tracker that (I hope!) fixes these two problems. 

https://sourceforge.net/tracker/?func=detail&aid=2789713&;
group_id=80706&atid=560722

It adds a new locator class, AutoMinorLocator, that can be used to dynamically
find minor tick positions based on major tick positions.  It also adds a new
function to pyplot, minorticks(), that can be used to toggle the minorticks on
and off. Adding autoscaling minor ticks reduces performance, but not excessively
(on my Intel centrino duo laptop). They should probably be off by default 
though.

Any comments are welcome,

Neil


--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel