@@ -517,11 +517,8 @@ def draw_all(self):
517
517
# Compute the X/Y mesh.
518
518
X , Y , extendlen = self ._mesh ()
519
519
# draw the extend triangles, and shrink the inner axes to accomodate.
520
- # returns the outline of the axes in axes-relative units, including
521
- # the extends:
522
- xyout = self ._do_extends (extendlen )
523
- # set the spine outline from the above:
524
- self .outline .set_xy (xyout )
520
+ # also adds the outline path to self.outline spine:
521
+ self ._do_extends (extendlen )
525
522
526
523
self .ax .set_xlim (self .vmin , self .vmax )
527
524
self .ax .set_ylim (self .vmin , self .vmax )
@@ -611,8 +608,10 @@ def _do_extends(self, extendlen):
611
608
xyout = xyout [:, ::- 1 ]
612
609
self .ax ._set_inner_bounds (bounds )
613
610
611
+ # xyout is the path for the spine:
612
+ self .outline .set_xy (xyout )
614
613
if not self .filled :
615
- return xyout
614
+ return
616
615
617
616
# Make extend triangles or rectangles filled patches. These are
618
617
# defined in the outer parent axes' co-ordinates:
@@ -655,7 +654,7 @@ def _do_extends(self, extendlen):
655
654
linewidth = 0 , antialiased = False ,
656
655
transform = self .ax .outer_ax .transAxes , hatch = hatches [- 1 ])
657
656
self .ax .outer_ax .add_patch (patch )
658
- return xyout
657
+ return
659
658
660
659
def add_lines (self , levels , colors , linewidths , erase = True ):
661
660
"""
@@ -796,7 +795,7 @@ def set_ticks(self, ticks, update_ticks=True):
796
795
797
796
def get_ticks (self , minor = False ):
798
797
"""
799
- Return the x ticks as a list of locations.
798
+ Return the ticks as a list of locations.
800
799
801
800
Parameters
802
801
----------
@@ -813,8 +812,17 @@ def set_ticklabels(self, ticklabels, update_ticks=True):
813
812
"""
814
813
Set tick labels.
815
814
815
+ Parameters
816
+ ----------
817
+
818
+ ticklabels : sequence of str or of `.Text`
819
+ Texts for labeling each tick location in the sequence set by
820
+ `.Axis.set_ticks`; the number of labels must match the number of
821
+ locations.
822
+
816
823
update_ticks : bool, default: True
817
824
This keyword argument is ignored and will be be removed.
825
+ Deprecated
818
826
"""
819
827
if isinstance (self .locator , ticker .FixedLocator ):
820
828
self .formatter = ticker .FixedFormatter (ticklabels )
0 commit comments