Skip to content

Commit 6b63ca9

Browse files
Merge pull request #168 from vpython/set-autoscale-correctly
scene.pos/axis need to set scene.autoscale, not scene._autoscale
2 parents 9c8dd39 + 62836e2 commit 6b63ca9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vpython/vpython.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2761,7 +2761,7 @@ def pos(self):
27612761
@pos.setter
27622762
def pos(self, value):
27632763
c = self._canvas
2764-
c._autoscale = False
2764+
c.autoscale = False
27652765
c.center = value+self.axis
27662766

27672767
@property
@@ -2771,7 +2771,7 @@ def axis(self):
27712771
@axis.setter
27722772
def axis(self, value):
27732773
c = self._canvas
2774-
c._autoscale = False
2774+
c.autoscale = False
27752775
c.center = self.pos+value # use current self.pos before it is changed by change in c.axis
27762776
c.axis = norm(value)
27772777
c.range = mag(value)*tan(c.fov/2)

0 commit comments

Comments
 (0)