[SciPy-dev] scipy plt can only plot once?

Travis N. Vaught travis at scipy.org
Thu Oct 11 11:22:01 EDT 2001


plt.figure() should create another wxFrame instance, allowing more than one
plot.  You can see this in the screenshot image:

http://www.scipy.org/site_content/screen_shots

TV

> -----Original Message-----
> From: scipy-dev-admin at scipy.org [mailto:scipy-dev-admin at scipy.org]On
> Behalf Of python at lee-morgan.net
> Sent: Thursday, October 11, 2001 10:15 AM
> To: scipy-dev at scipy.net
> Subject: [SciPy-dev] scipy plt can only plot once?
>
>
>
> After investigation its due to a division error...
>
> Is it possible to have more than one live plot?
>
> *** c:/WINDOWS/TEMP/plot_objects.py	Fri Oct 12 01:09:56 2001
> --- c:/WINDOWS/TEMP/ediff-36954966S	Fri Oct 12 01:09:56 2001
> ***************
> *** 459,469 ****
>               raise ValueError,'rotate must be 0 or 90. It is %d'
> % self.rotate
>
>           # translate to screen units for the ticks.
> !         try:
> !             scale = length / float(self.ticks[-1] - self.ticks[0])
> !         except ZeroDivisionError:
> !             scale = 1 #length / float(self.ticks[-1] - self.ticks[0])
> !
>           tick_locations = floor((self.ticks - self.ticks[0]) * scale)
>
>           # make array of points with tick screen units as x
> value, 0 for y value
> --- 459,465 ----
>               raise ValueError,'rotate must be 0 or 90. It is %d'
> % self.rotate
>
>           # translate to screen units for the ticks.
> !         scale = length / float(self.ticks[-1] - self.ticks[0])
>           tick_locations = floor((self.ticks - self.ticks[0]) * scale)
>
>           # make array of points with tick screen units as x
> value, 0 for y value
>
>
> --
> Python
>
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-dev




More information about the SciPy-Dev mailing list