On 4/23/07, Eric Firing <[EMAIL PROTECTED]> wrote: > The autoscaling mechanism does not keep track of plot elements, so it > has no way of knowing what to change when you delete a line. You will > have to keep track of the x and y extents of each element yourself, and > manually reset the xlim and ylim when you want to rescale after deleting > a line. This can be done with the Axes set_xlim and set_ylim methods.
I recently added a helper function "relim" in svn in the Axes class to automatically recomupte the data limits. After removing various lines, simply do ax.relim() ax.autoscale_view() but you will need svn... ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users