@@ -340,6 +340,10 @@ def _apply_params(self, **kw):
340
340
v = getattr (self .label1 , 'get_' + k )()
341
341
setattr (self , '_label' + k , v )
342
342
343
+ def update_position (self , loc ):
344
+ 'Set the location of tick in data coords with scalar *loc*'
345
+ raise NotImplementedError ('Derived must override' )
346
+
343
347
344
348
class XTick (Tick ):
345
349
"""
@@ -1670,6 +1674,23 @@ def get_tick_space(self):
1670
1674
# Must be overridden in the subclass
1671
1675
raise NotImplementedError ()
1672
1676
1677
+ def get_label_position (self ):
1678
+ """
1679
+ Return the label position (top or bottom)
1680
+ """
1681
+ return self .label_position
1682
+
1683
+ def set_label_position (self , position ):
1684
+ """
1685
+ Set the label position (top or bottom)
1686
+
1687
+ ACCEPTS: [ 'top' | 'bottom' ]
1688
+ """
1689
+ raise NotImplementedError ()
1690
+
1691
+ def get_minpos (self ):
1692
+ raise NotImplementedError ()
1693
+
1673
1694
1674
1695
class XAxis (Axis ):
1675
1696
__name__ = 'xaxis'
@@ -1769,12 +1790,6 @@ def _get_pixel_distance_along_axis(self, where, perturb):
1769
1790
1770
1791
return dx
1771
1792
1772
- def get_label_position (self ):
1773
- """
1774
- Return the label position (top or bottom)
1775
- """
1776
- return self .label_position
1777
-
1778
1793
def set_label_position (self , position ):
1779
1794
"""
1780
1795
Set the label position (top or bottom)
@@ -2098,12 +2113,6 @@ def _get_pixel_distance_along_axis(self, where, perturb):
2098
2113
dy = abs (ptp [1 ] - where )
2099
2114
return dy
2100
2115
2101
- def get_label_position (self ):
2102
- """
2103
- Return the label position (left or right)
2104
- """
2105
- return self .label_position
2106
-
2107
2116
def set_label_position (self , position ):
2108
2117
"""
2109
2118
Set the label position (left or right)
0 commit comments