File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -639,16 +639,30 @@ def __init__(
639639 ** kwargs ,
640640 )
641641
642+ self ._sepration_axis = separation_axis
643+ self ._separation = separation
644+
645+ self .separation = separation
646+
647+ @property
648+ def separation (self ) -> float :
649+ """distance between each line in the stack, in world space"""
650+ return self ._separation
651+
652+ @separation .setter
653+ def separation (self , value : float ):
654+ separation = float (value )
655+
642656 axis_zero = 0
643657 for i , line in enumerate (self .graphics ):
644- if separation_axis == "x" :
658+ if self . _sepration_axis == "x" :
645659 line .offset = (axis_zero , * line .offset [1 :])
646660
647- elif separation_axis == "y" :
661+ elif self . _sepration_axis == "y" :
648662 line .offset = (line .offset [0 ], axis_zero , line .offset [2 ])
649663
650664 axis_zero = (
651- axis_zero + line .data .value [:, axes [separation_axis ]].max () + separation
665+ axis_zero + line .data .value [:, axes [self . _sepration_axis ]].max () + separation
652666 )
653667
654- self .separation = separation
668+ self ._separation = value
You can’t perform that action at this time.
0 commit comments