On Fri, Jun 20, 2008 at 6:10 PM, Andrew Straw <[EMAIL PROTECTED]> wrote:
> Hmm, I'm sending this directly to you guys... My post to MPL devel still
> seems to be in the queue somewhere...
>
> -Andrew
>
> Hi,
>
> I've encountered behavior in the svn trunk that I think is a bug.
> Namely, the axes view limits are reset to the data limits upon a UI
> event callback. In the attached test script for example, the plot
> initially displays with the correct view limits (between -10 and 10 on
> the X axis). However, when a key is pressed, the view is automatically
> (and falsely) reset to encompass the entire data limits. I believe this
> behavior has changed since 0.91.

Feature, not bug.  The keypress callback in this example calls "plot"
which engages the autoscale machinery.  If you comment out the plot
call in the keypress callback, you don't see the rescaling. If you
want to disable the autoscaling on the calls to plot and friends, you
need to set the axes property autoscale_on=False

ax1 =fig.add_subplot(2,1,1,autoscale_on=False)

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to