Changing limits after plot has been deleted

Hi,

I can delete a line plot by removing the line object from axes.get_lines() … but the limits are still saved… so the axes is still autoscaled using so it includes the deleted line… Does anyone know how do I remove these limits? or update the data limits on the plotted data so that autoscale works again?

Soren

2009/3/27 Søren Nielsen <soren.skou.nielsen@…287…>

Hi,

I can delete a line plot by removing the line object from axes.get_lines() … but the limits are still saved… so the axes is still autoscaled using so it includes the deleted line… Does anyone know how do I remove these limits? or update the data limits on the plotted data so that autoscale works again?

Use ax.relim()

http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.relim

JDH