>>>>> "Eric" == Eric Firing <[EMAIL PROTECTED]> writes:
Eric> I don't think so; and although I have not thought hard about Eric> it, my impression is that adding this capability would take Eric> a lot of work and redesign. I expect that in most cases Eric> what you describe would not be the desired behavior, so it Eric> would have to be a non-default option. One should be able to write a specific example that exposes this functionality fairly easily using callback event handling. I'll provide a simple example using a line plot to get the approximate ylimits of the data based on the xaxis zoom limits, and maybe some enterprising developer can extend this example to an image which sets the clim based on the xlim and ylim from pylab import nx, figure, show t = nx.arange(0.0, 2.0, 0.1) s = nx.sin(2*nx.pi*t) fig = figure() ax = fig.add_subplot(111) ax.plot(t, s) def on_xlim(ax): xmin, xmax = ax.get_xlim() imin, imax = nx.searchsorted(t, (xmin, xmax)) thiss = s[imin:imax] ax.set_ylim(min(thiss), max(thiss)) ax.figure.canvas.draw() ax.connect('xlim_changed', on_xlim) show() ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users