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

python at lee-morgan.net python at lee-morgan.net
Thu Oct 11 11:14:33 EDT 2001


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




More information about the SciPy-Dev mailing list