From: Jon W. <wr...@es...> - 2004-08-19 12:06:39
|
Hi all, Is there a trick hidden somewhere for autoscaling one axis only? I am frequently plotting data which has a series of narrow peaks and a large dynamic range. After zooming on the x-axis to the region of interest, I'd like to have an option to make the y axis rescale for the data in that range only. Having flailed around in the source I have the feeling that this is possible, but I haven't quite fathomed out how to do it (I'm using matplotlib for an interactive plot embedded in a tk application). Essentially I want the appropriate magic spell to give me a bounding box in y for the current x axis limits. The things I tried so far always seem to give the bounding box for all the data points, including the ones which are not currently being plotted on the x range. Sorry if I've missed something obvious! Thanks in advance, Jon |