[Matplotlib-users] imshow(), set_data() and sequential update problem with two figures

2007-02-01 Thread Daniel Wheeler
newdata = numpy.array(((0.,1.),(2.,3.))) pylab.figure(fig0.number) image0.set_data(newdata) pylab.clim(vmax=3, vmin=0) pylab.draw() raw_input('fig 0') ## redraw figure 1 with new data, works fine pylab.figure(fig1.number) imag

Re: [Matplotlib-users] ylim() efficiency

2006-08-02 Thread Daniel Wheeler
Thanks for the detailed reply. I was just wondering whether I was missing something obvious andthat doesn't seem to be the case.CheersDaniel WheelerOn Aug 2, 2006, at 2:15 PM, John Hunter wrote:"Daniel" == Daniel Wheeler <[EMAIL PROTECTED]> writes:     Daniel>    It seems

[Matplotlib-users] ylim() efficiency

2006-08-02 Thread Daniel Wheeler
It seems that resetting the axes limits every time data needs to be redisplayed is rather inefficient.A script is included with this mail that tests the efficiency of resizing the y axis.The script has two loops, in the first loop pylab.ylim() is continuously called with the changingsize of the dom