@@ -1173,7 +1173,7 @@ def update_datalim(self, xys):
1173
1173
# Otherwise, it will compute the bounds of it's current data
1174
1174
# and the data in xydata
1175
1175
xys = npy .asarray (xys )
1176
-
1176
+
1177
1177
1178
1178
self .dataLim .update_numerix_xy (xys , - 1 )
1179
1179
@@ -1631,25 +1631,33 @@ def set_xscale(self, value, basex = 10, subsx=None):
1631
1631
self .xaxis .set_minor_formatter (mticker .NullFormatter ())
1632
1632
self .transData .get_funcx ().set_type ( mtrans .IDENTITY )
1633
1633
1634
- def get_xticks (self ):
1634
+ def get_xticks (self , minor = False ):
1635
1635
'Return the x ticks as a list of locations'
1636
- return self .xaxis .get_ticklocs ()
1636
+ return self .xaxis .get_ticklocs (minor = minor )
1637
1637
1638
- def set_xticks (self , ticks ):
1638
+ def set_xticks (self , ticks , minor = False ):
1639
1639
"""
1640
1640
Set the x ticks with list of ticks
1641
1641
1642
1642
ACCEPTS: sequence of floats
1643
1643
"""
1644
- return self .xaxis .set_ticks (ticks )
1644
+ return self .xaxis .set_ticks (ticks , minor = minor )
1645
+
1646
+ def get_xmajorticklabels (self ):
1647
+ 'Get the xtick labels as a list of Text instances'
1648
+ return cbook .silent_list ('Text xticklabel' , self .xaxis .get_majorticklabels ())
1645
1649
1646
- def get_xticklabels (self ):
1650
+ def get_xminorticklabels (self ):
1647
1651
'Get the xtick labels as a list of Text instances'
1648
- return cbook .silent_list ('Text xticklabel' , self .xaxis .get_ticklabels ())
1652
+ return cbook .silent_list ('Text xticklabel' , self .xaxis .get_minorticklabels ())
1649
1653
1650
- def set_xticklabels (self , labels , fontdict = None , ** kwargs ):
1654
+ def get_xticklabels (self , minor = False ):
1655
+ 'Get the xtick labels as a list of Text instances'
1656
+ return cbook .silent_list ('Text xticklabel' , self .xaxis .get_ticklabels (minor = minor ))
1657
+
1658
+ def set_xticklabels (self , labels , fontdict = None , minor = False , ** kwargs ):
1651
1659
"""
1652
- SET_XTICKLABELS (labels, fontdict=None, **kwargs)
1660
+ set_xticklabels (labels, fontdict=None, minor=False , **kwargs)
1653
1661
1654
1662
Set the xtick labels with list of strings labels Return a list of axis
1655
1663
text instances.
@@ -1659,7 +1667,7 @@ def set_xticklabels(self, labels, fontdict=None, **kwargs):
1659
1667
1660
1668
ACCEPTS: sequence of strings
1661
1669
"""
1662
- return self .xaxis .set_ticklabels (labels , fontdict , ** kwargs )
1670
+ return self .xaxis .set_ticklabels (labels , fontdict , minor = minor , ** kwargs )
1663
1671
set_xticklabels .__doc__ = cbook .dedent (set_xticklabels .__doc__ ) % martist .kwdocd
1664
1672
1665
1673
def invert_yaxis (self ):
@@ -1795,25 +1803,33 @@ def set_yscale(self, value, basey=10, subsy=None):
1795
1803
self .yaxis .set_minor_formatter (mticker .NullFormatter ())
1796
1804
self .transData .get_funcy ().set_type ( mtrans .IDENTITY )
1797
1805
1798
- def get_yticks (self ):
1806
+ def get_yticks (self , minor = False ):
1799
1807
'Return the y ticks as a list of locations'
1800
- return self .yaxis .get_ticklocs ()
1808
+ return self .yaxis .get_ticklocs (minor = minor )
1801
1809
1802
- def set_yticks (self , ticks ):
1810
+ def set_yticks (self , ticks , minor = False ):
1803
1811
"""
1804
1812
Set the y ticks with list of ticks
1805
1813
1806
1814
ACCEPTS: sequence of floats
1807
1815
"""
1808
- return self .yaxis .set_ticks (ticks )
1816
+ return self .yaxis .set_ticks (ticks , minor = minor )
1809
1817
1810
- def get_yticklabels (self ):
1811
- 'Get the ytick labels as a list of Text instances'
1812
- return cbook .silent_list ('Text yticklabel' , self .yaxis .get_ticklabels ())
1818
+ def get_ymajorticklabels (self ):
1819
+ 'Get the xtick labels as a list of Text instances'
1820
+ return cbook .silent_list ('Text yticklabel' , self .yaxis .get_majorticklabels ())
1813
1821
1814
- def set_yticklabels (self , labels , fontdict = None , ** kwargs ):
1822
+ def get_yminorticklabels (self ):
1823
+ 'Get the xtick labels as a list of Text instances'
1824
+ return cbook .silent_list ('Text yticklabel' , self .yaxis .get_minorticklabels ())
1825
+
1826
+ def get_yticklabels (self , minor = False ):
1827
+ 'Get the xtick labels as a list of Text instances'
1828
+ return cbook .silent_list ('Text yticklabel' , self .yaxis .get_ticklabels (minor = minor ))
1829
+
1830
+ def set_yticklabels (self , labels , fontdict = None , minor = False , ** kwargs ):
1815
1831
"""
1816
- SET_YTICKLABELS (labels, fontdict=None, **kwargs)
1832
+ set_yticklabels (labels, fontdict=None, minor=False , **kwargs)
1817
1833
1818
1834
Set the ytick labels with list of strings labels. Return a list of
1819
1835
Text instances.
@@ -1823,7 +1839,7 @@ def set_yticklabels(self, labels, fontdict=None, **kwargs):
1823
1839
1824
1840
ACCEPTS: sequence of strings
1825
1841
"""
1826
- return self .yaxis .set_ticklabels (labels , fontdict , ** kwargs )
1842
+ return self .yaxis .set_ticklabels (labels , fontdict , minor = minor , ** kwargs )
1827
1843
set_yticklabels .__doc__ = cbook .dedent (set_yticklabels .__doc__ ) % martist .kwdocd
1828
1844
1829
1845
def toggle_log_lineary (self ):
@@ -3702,7 +3718,7 @@ def xywhere(xs, ys, mask):
3702
3718
3703
3719
if xerr is not None :
3704
3720
if iterable (xerr ) and len (xerr )== 2 :
3705
- # using list comps rather than arrays to preserve units
3721
+ # using list comps rather than arrays to preserve units
3706
3722
left = [thisx - thiserr for (thisx , thiserr ) in cbook .safezip (x ,xerr [0 ])]
3707
3723
right = [thisx + thiserr for (thisx , thiserr ) in cbook .safezip (x ,xerr [1 ])]
3708
3724
else :
0 commit comments