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