File tree 2 files changed +9
-5
lines changed
2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -90,10 +90,6 @@ def __deepcopy__(self, memo):
90
90
__copy__ = __deepcopy__
91
91
92
92
93
- class LinearTransform (_CopyableTransformMixin , IdentityTransform ):
94
- pass
95
-
96
-
97
93
class LinearScale (ScaleBase ):
98
94
"""
99
95
The default linear scale.
@@ -125,7 +121,7 @@ def get_transform(self):
125
121
Return the transform for linear scaling, which is just the
126
122
`~matplotlib.transforms.IdentityTransform`.
127
123
"""
128
- return LinearTransform ()
124
+ return IdentityTransform ()
129
125
130
126
131
127
class FuncTransform (_CopyableTransformMixin , Transform ):
Original file line number Diff line number Diff line change @@ -2062,6 +2062,14 @@ def frozen(self):
2062
2062
# docstring inherited
2063
2063
return self
2064
2064
2065
+ def __deepcopy__ (self , memo ):
2066
+ """
2067
+ The identity transform does not need to lock out deepcopy
2068
+ """
2069
+ return self .frozen ()
2070
+
2071
+ __copy__ = __deepcopy__
2072
+
2065
2073
__str__ = _make_str_method ()
2066
2074
2067
2075
def get_matrix (self ):
You can’t perform that action at this time.
0 commit comments