I'm also looking into a similar issue, and would be interested to see what
approaches others have taken.

Has anyone found a good framework-independent solution?

Keith

On Wed, Aug 10, 2011 at 5:15 PM, David Just <just.da...@mayo.edu> wrote:

>  I have an array of images stored as an array of numpy arrays.   I need to
> be able to efficiently scroll through that set of images.   My first attempt
> at doing this goes something like this:
>
> --init--
>
>         self.ax = pyplot.imshow(imgdta[0], interpolation='spline36',
> cmap=cm.gray, picker=True)      # draw the plot @UndefinedVariable
>         pyplot.axes().set_axis_off()
>         self.fig = self.ax.get_figure()
>         self.canvas = FigureCanvasGTKAgg(self.fig)
>
> --onscroll--
>         self.ax.set_array(imdta[n]) # 0 < n < num_images
>         self.canvas.draw()
>
>
> This method of changing the image data does not seem to be very preferment.
>  It takes ~.25 seconds to go from one image to the next.   Can anybody
> suggest a faster way?  This also ends up in a canvas that’s much larger than
> I need, is there a better way to define my view area?
>
>
> Thank you,
> Dave.
>
>
> ------------------------------------------------------------------------------
> uberSVN's rich system and user administration capabilities and model
> configuration take the hassle out of deploying and managing Subversion and
> the tools developers use with it. Learn more about uberSVN and get a free
> download at:  http://p.sf.net/sfu/wandisco-dev2dev
>
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to