@@ -628,6 +628,18 @@ class Axis(martist.Artist):
628
628
The acceptance radius for containment tests. See also `.Axis.contains`.
629
629
majorTicks : list of `.Tick`
630
630
The major ticks.
631
+
632
+ .. warning::
633
+
634
+ Ticks are not guaranteed to be persistent. Various operations
635
+ can create, delete and modify the Tick instances. There is an
636
+ imminent risk that changes to individual ticks will not
637
+ survive if you work on the figure further (including also
638
+ panning/zooming on a displayed figure).
639
+
640
+ Working on the individual ticks is a method of last resort.
641
+ Use `.set_tick_params` instead if possible.
642
+
631
643
minorTicks : list of `.Tick`
632
644
The minor ticks.
633
645
"""
@@ -1593,7 +1605,20 @@ def get_minor_formatter(self):
1593
1605
return self .minor .formatter
1594
1606
1595
1607
def get_major_ticks (self , numticks = None ):
1596
- r"""Return the list of major `.Tick`\s."""
1608
+ r"""
1609
+ Return the list of major `.Tick`\s.
1610
+
1611
+ .. warning::
1612
+
1613
+ Ticks are not guaranteed to be persistent. Various operations
1614
+ can create, delete and modify the Tick instances. There is an
1615
+ imminent risk that changes to individual ticks will not
1616
+ survive if you work on the figure further (including also
1617
+ panning/zooming on a displayed figure).
1618
+
1619
+ Working on the individual ticks is a method of last resort.
1620
+ Use `.set_tick_params` instead if possible.
1621
+ """
1597
1622
if numticks is None :
1598
1623
numticks = len (self .get_majorticklocs ())
1599
1624
@@ -1606,7 +1631,20 @@ def get_major_ticks(self, numticks=None):
1606
1631
return self .majorTicks [:numticks ]
1607
1632
1608
1633
def get_minor_ticks (self , numticks = None ):
1609
- r"""Return the list of minor `.Tick`\s."""
1634
+ r"""
1635
+ Return the list of minor `.Tick`\s.
1636
+
1637
+ .. warning::
1638
+
1639
+ Ticks are not guaranteed to be persistent. Various operations
1640
+ can create, delete and modify the Tick instances. There is an
1641
+ imminent risk that changes to individual ticks will not
1642
+ survive if you work on the figure further (including also
1643
+ panning/zooming on a displayed figure).
1644
+
1645
+ Working on the individual ticks is a method of last resort.
1646
+ Use `.set_tick_params` instead if possible.
1647
+ """
1610
1648
if numticks is None :
1611
1649
numticks = len (self .get_minorticklocs ())
1612
1650
@@ -1949,6 +1987,17 @@ def set_ticklabels(self, labels, *, minor=False, fontdict=None, **kwargs):
1949
1987
**kwargs
1950
1988
Text properties.
1951
1989
1990
+ .. warning::
1991
+
1992
+ This only sets the properties of the current ticks.
1993
+ Ticks are not guaranteed to be persistent. Various operations
1994
+ can create, delete and modify the Tick instances. There is an
1995
+ imminent risk that these settings can get lost if you work on
1996
+ the figure further (including also panning/zooming on a
1997
+ displayed figure).
1998
+
1999
+ Use `.set_tick_params` instead if possible.
2000
+
1952
2001
Returns
1953
2002
-------
1954
2003
list of `.Text`\s
0 commit comments