8000 FIX: remove LinearTransform · matplotlib/matplotlib@713e675 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 713e675

Browse files
committed
FIX: remove LinearTransform
1 parent 2a2a68f commit 713e675

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

lib/matplotlib/scale.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,6 @@ def __deepcopy__(self, memo):
9090
__copy__ = __deepcopy__
9191

9292

93-
class LinearTransform(_CopyableTransformMixin, IdentityTransform):
94-
pass
95-
96-
9793
class LinearScale(ScaleBase):
9894
"""
9995
The default linear scale.
@@ -125,7 +121,7 @@ def get_transform(self):
125121
Return the transform for linear scaling, which is just the
126122
`~matplotlib.transforms.IdentityTransform`.
127123
"""
128-
return LinearTransform()
124+
return IdentityTransform()
129125

130126

131127
class FuncTransform(_CopyableTransformMixin, Transform):

lib/matplotlib/transforms.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2062,6 +2062,14 @@ def frozen(self):
20622062
# docstring inherited
20632063
return self
20642064

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+
20652073
__str__ = _make_str_method()
20662074

20672075
def get_matrix(self):

0 commit comments

Comments
 (0)
0