Changeset 8534:86d6ab7dc97d in orange


Ignore:
Timestamp:
07/29/11 21:05:34 (3 years ago)
Author:
matejd <matejd@…>
Branch:
default
Convert:
37d64aad9a2cd2769c696dad9b0c95856a160bc5
Message:

Forgot to rename a variable in the previous commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/plot/owplot3d.py

    r8533 r8534  
    11791179        # Avoid division by zero by adding a small value (this happens when zooming in 
    11801180        # on elements with the same value of an attribute). 
    1181         self.size = numpy.array(map(lambda i: i+0.001 if i == 0 else i, max-min)) 
    1182         new_scale = self.view_cube_edge / self.size 
     1181        self.zoomed_size = numpy.array(map(lambda i: i+0.001 if i == 0 else i, max-min)) 
     1182        new_scale = self.view_cube_edge / self.zoomed_size 
    11831183        self._animate_new_scale_translation(new_scale, new_translation) 
    11841184 
     
    13951395            dx = pos.x() - self.scaling_init_pos.x() 
    13961396            dy = pos.y() - self.scaling_init_pos.y() 
    1397             dx /= float(self.size[0 if self.scale_x_axis else 2]) 
    1398             dy /= float(self.size[1]) 
     1397            dx /= float(self.zoomed_size[0 if self.scale_x_axis else 2]) 
     1398            dy /= float(self.zoomed_size[1]) 
    13991399            dx /= self.scale_factor * self.width() 
    14001400            dy /= self.scale_factor * self.height() 
Note: See TracChangeset for help on using the changeset viewer.