Re: [Matplotlib-users] Autoscaling after removing lines.

2011-08-05 Thread Goyo
Seems like Axes.relim is what I was looking for. It does not take
collections into account but I don't need that for now.

2011/8/1, Goyo :
> Hy all,
>
> I recently had a pretty hard time trying to figure out how to properly
> autoscale a plot after removing a line (see attached script). Finally
> I found at [1] that I have to explicitly refresh the axes dataLim
> before autoscaling.
>
> In [1] John Hunter says that computing the proper dataLim can be
> complicated if there are several types of artists in the axes, like
> polygons and collections an that "[it] would be useful to have an Axes
> method like "auto_datalim" to for the datalim to readjust to all the
> current data."
>
> My question is whether such a function has been implemented. Besides
> any suggestions about how to deal with this are welcome. I just need
> to adjust to lines right now but this may change in the future.
>
> Best regards
>
> Goyo
>
> [1] http://old.nabble.com/Removing-a-line-from-a-plot-td7249600.html
>

--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Autoscaling after removing lines.

2011-08-01 Thread Goyo
Hy all,

I recently had a pretty hard time trying to figure out how to properly
autoscale a plot after removing a line (see attached script). Finally
I found at [1] that I have to explicitly refresh the axes dataLim
before autoscaling.

In [1] John Hunter says that computing the proper dataLim can be
complicated if there are several types of artists in the axes, like
polygons and collections an that "[it] would be useful to have an Axes
method like "auto_datalim" to for the datalim to readjust to all the
current data."

My question is whether such a function has been implemented. Besides
any suggestions about how to deal with this are welcome. I just need
to adjust to lines right now but this may change in the future.

Best regards

Goyo

[1] http://old.nabble.com/Removing-a-line-from-a-plot-td7249600.html


autoscaling_issues.py
Description: Binary data
--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users