File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -718,10 +718,8 @@ def _vec2s(fmt, v):
718
718
return ", " .join ([fmt .format (x ) for x in v ])
719
719
720
720
721
-
722
721
def trplot2 (
723
722
T ,
724
-
725
723
color = "blue" ,
726
724
frame = None ,
727
725
axislabel = True ,
@@ -837,12 +835,12 @@ def trplot2(
837
835
except AttributeError :
838
836
pass # if axes are an Animate object
839
837
840
- if not hasattr (ax , ' _plotvol' ):
838
+ if not hasattr (ax , " _plotvol" ):
841
839
ax .set_aspect ("equal" )
842
840
843
841
if dims is not None :
844
842
ax .axis (base .expand_dims (dims ))
845
- elif not hasattr (ax , ' _plotvol' ):
843
+ elif not hasattr (ax , " _plotvol" ):
846
844
ax .autoscale (enable = True , axis = "both" )
847
845
848
846
# create unit vectors in homogeneous form
@@ -933,6 +931,7 @@ def trplot2(
933
931
plt .show (block = block )
934
932
return ax
935
933
934
+
936
935
def tranimate2 (T , ** kwargs ):
937
936
"""
938
937
Animate a 2D coordinate frame
@@ -961,10 +960,10 @@ def tranimate2(T, **kwargs):
961
960
"""
962
961
anim = base .animate .Animate2 (** kwargs )
963
962
try :
964
- del kwargs [' dims' ]
963
+ del kwargs [" dims" ]
965
964
except KeyError :
966
965
pass
967
-
966
+
968
967
anim .trplot2 (T , ** kwargs )
969
968
anim .run (** kwargs )
970
969
You can’t perform that action at this time.
0 commit comments