@@ -1173,7 +1173,7 @@ def update_datalim(self, xys):
11731173 # Otherwise, it will compute the bounds of it's current data
11741174 # and the data in xydata
11751175 xys = npy .asarray (xys )
1176-
1176+
11771177
11781178 self .dataLim .update_numerix_xy (xys , - 1 )
11791179
@@ -1631,25 +1631,33 @@ def set_xscale(self, value, basex = 10, subsx=None):
16311631 self .xaxis .set_minor_formatter (mticker .NullFormatter ())
16321632 self .transData .get_funcx ().set_type ( mtrans .IDENTITY )
16331633
1634- def get_xticks (self ):
1634+ def get_xticks (self , minor = False ):
16351635 'Return the x ticks as a list of locations'
1636- return self .xaxis .get_ticklocs ()
1636+ return self .xaxis .get_ticklocs (minor = minor )
16371637
1638- def set_xticks (self , ticks ):
1638+ def set_xticks (self , ticks , minor = False ):
16391639 """
16401640 Set the x ticks with list of ticks
16411641
16421642 ACCEPTS: sequence of floats
16431643 """
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 ())
16451649
1646- def get_xticklabels (self ):
1650+ def get_xminorticklabels (self ):
16471651 '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 ())
16491653
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 ):
16511659 """
1652- SET_XTICKLABELS (labels, fontdict=None, **kwargs)
1660+ set_xticklabels (labels, fontdict=None, minor=False , **kwargs)
16531661
16541662 Set the xtick labels with list of strings labels Return a list of axis
16551663 text instances.
@@ -1659,7 +1667,7 @@ def set_xticklabels(self, labels, fontdict=None, **kwargs):
16591667
16601668 ACCEPTS: sequence of strings
16611669 """
1662- return self .xaxis .set_ticklabels (labels , fontdict , ** kwargs )
1670+ return self .xaxis .set_ticklabels (labels , fontdict , minor = minor , ** kwargs )
16631671 set_xticklabels .__doc__ = cbook .dedent (set_xticklabels .__doc__ ) % martist .kwdocd
16641672
16651673 def invert_yaxis (self ):
@@ -1795,25 +1803,33 @@ def set_yscale(self, value, basey=10, subsy=None):
17951803 self .yaxis .set_minor_formatter (mticker .NullFormatter ())
17961804 self .transData .get_funcy ().set_type ( mtrans .IDENTITY )
17971805
1798- def get_yticks (self ):
1806+ def get_yticks (self , minor = False ):
17991807 'Return the y ticks as a list of locations'
1800- return self .yaxis .get_ticklocs ()
1808+ return self .yaxis .get_ticklocs (minor = minor )
18011809
1802- def set_yticks (self , ticks ):
1810+ def set_yticks (self , ticks , minor = False ):
18031811 """
18041812 Set the y ticks with list of ticks
18051813
18061814 ACCEPTS: sequence of floats
18071815 """
1808- return self .yaxis .set_ticks (ticks )
1816+ return self .yaxis .set_ticks (ticks , minor = minor )
18091817
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 ())
18131821
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 ):
18151831 """
1816- SET_YTICKLABELS (labels, fontdict=None, **kwargs)
1832+ set_yticklabels (labels, fontdict=None, minor=False , **kwargs)
18171833
18181834 Set the ytick labels with list of strings labels. Return a list of
18191835 Text instances.
@@ -1823,7 +1839,7 @@ def set_yticklabels(self, labels, fontdict=None, **kwargs):
18231839
18241840 ACCEPTS: sequence of strings
18251841 """
1826- return self .yaxis .set_ticklabels (labels , fontdict , ** kwargs )
1842+ return self .yaxis .set_ticklabels (labels , fontdict , minor = minor , ** kwargs )
18271843 set_yticklabels .__doc__ = cbook .dedent (set_yticklabels .__doc__ ) % martist .kwdocd
18281844
18291845 def toggle_log_lineary (self ):
@@ -3702,7 +3718,7 @@ def xywhere(xs, ys, mask):
37023718
37033719 if xerr is not None :
37043720 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
37063722 left = [thisx - thiserr for (thisx , thiserr ) in cbook .safezip (x ,xerr [0 ])]
37073723 right = [thisx + thiserr for (thisx , thiserr ) in cbook .safezip (x ,xerr [1 ])]
37083724 else :
0 commit comments