@@ -1020,12 +1020,12 @@ def set_ticks(self, xticks, yticks, update_ticks=True):
1020
1020
1021
1021
"""
1022
1022
if cbook .iterable (xticks ):
1023
- self .xlocator = ticker .FixedLocator (xticks , nbins = len (ticks ))
1023
+ self .xlocator = ticker .FixedLocator (xticks , nbins = len (xticks ))
1024
1024
else :
1025
1025
self .xlocator = xticks
1026
1026
1027
1027
if cbook .iterable (yticks ):
1028
- self .ylocator = ticker .FixedLocator (yticks , nbins = len (ticks ))
1028
+ self .ylocator = ticker .FixedLocator (yticks , nbins = len (yticks ))
1029
1029
else :
1030
1030
self .ylocator = yticks
1031
1031
@@ -1037,14 +1037,15 @@ def get_ticks(self, minor=False):
1037
1037
"""Return the x ticks as a list of locations"""
1038
1038
return self ._tick_data_values
1039
1039
1040
- def set_ticklabels (self , ticklabels , update_ticks = True ):
1040
+ def set_ticklabels (self , xticklabels , yticklabels , update_ticks = True ):
1041
1041
"""
1042
1042
set tick labels. Tick labels are updated immediately unless
1043
1043
update_ticks is *False*. To manually update the ticks, call
1044
1044
*update_ticks* method explicitly.
1045
1045
"""
1046
1046
if isinstance (self .locator , ticker .FixedLocator ):
1047
- self .formatter = ticker .FixedFormatter (ticklabels )
1047
+ self .xformatter = ticker .FixedFormatter (xticklabels )
1048
+ self .yformatter = ticker .FixedFormatter (yticklabels )
1048
1049
if update_ticks :
1049
1050
self .update_ticks ()
1050
1051
else :
@@ -1056,14 +1057,15 @@ def _config_axes(self, X, Y):
1056
1057
Make an axes patch and outline.
1057
1058
'''
1058
1059
ax = self .ax
1059
- ax .set_frame_on (False )
1060
+ # ax.set_frame_on(False)
1060
1061
ax .set_navigate (False )
1061
- xy = self ._outline (X , Y )
1062
- ax .update_datalim (xy )
1063
- ax .set_xlim (* ax .dataLim .intervalx )
1064
- ax .set_ylim (* ax .dataLim .intervaly )
1065
- if self .outline is not None :
1066
- self .outline .remove ()
1062
+ # xy = self._outline(X, Y)
1063
+ # ax.update_datalim(xy)
1064
+ # ax.set_xlim(*ax.dataLim.intervalx)
1065
+ # ax.set_ylim(*ax.dataLim.intervaly)
1066
+ # if self.outline is not None:
1067
+ # self.outline.remove()
1068
+ """
1067
1069
self.outline = mpatches.Polygon(
1068
1070
xy, edgecolor=mpl.rcParams['axes.edgecolor'],
1069
1071
facecolor='none',
@@ -1073,6 +1075,7 @@ def _config_axes(self, X, Y):
1073
1075
ax.add_artist(self.outline)
1074
1076
self.outline.set_clip_box(None)
1075
1077
self.outline.set_clip_path(None)
1078
+
1076
1079
c = mpl.rcParams['axes.facecolor']
1077
1080
if self.patch is not None:
1078
1081
self.patch.remove()
@@ -1081,7 +1084,7 @@ def _config_axes(self, X, Y):
1081
1084
linewidth=0.01,
1082
1085
zorder=-1)
1083
1086
ax.add_artist(self.patch)
1084
-
1087
+ """
1085
1088
self .update_ticks ()
1086
1089
1087
1090
def _set_label (self ):
@@ -1768,9 +1771,9 @@ def make_axes_gridspec(parent, **kw):
1768
1771
orientation = kw .setdefault ('orientation' , 'vertical' )
1769
1772
kw ['ticklocation' ] = 'auto'
1770
1773
1771
- fraction = kw .pop ('fraction' , 0.15 )
1774
+ fraction = kw .pop ('fraction' , 0.35 )
1772
1775
shrink = kw .pop ('shrink' , 1.0 )
1773
- aspect = kw .pop ('aspect' , 20 )
1776
+ aspect = kw .pop ('aspect' , 1 )
1774
1777
1775
1778
x1 = 1.0 - fraction
1776
1779
0 commit comments