Skip to content

Commit 3818397

Browse files
committed
MNT: Add empty _get_text?_transform to Axis.
Such an implementation already exists for update_position(), add some for these methods for clarity and to help users who want to be able to follow them from where they're called (like in an IDE).
1 parent 6777e33 commit 3818397

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/matplotlib/axis.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,12 @@ def update_position(self, loc):
344344
'Set the location of tick in data coords with scalar *loc*'
345345
raise NotImplementedError('Derived must override')
346346

347+
def _get_text1_transform(self):
348+
raise NotImplementedError('Derived must override')
349+
350+
def _get_text2_transform(self):
351+
raise NotImplementedError('Derived must override')
352+
347353

348354
class XTick(Tick):
349355
"""

0 commit comments

Comments
 (0)