Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c14ae4c

Browse files
committed
Pass kwargs through to colorbar label.
svn path=/trunk/matplotlib/; revision=2736
1 parent 658457d commit c14ae4c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/matplotlib/colorbar.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,11 @@ def _config_axes(self, X, Y):
192192
ax.set_xticklabels(ticklabels)
193193
ax.xaxis.get_major_formatter().set_offset_string(offset_string)
194194

195-
def set_label(self, label):
195+
def set_label(self, label, **kw):
196196
if self.orientation == 'vertical':
197-
self.ax.set_ylabel(label)
197+
self.ax.set_ylabel(label, **kw)
198198
else:
199-
self.ax.set_xlabel(label)
199+
self.ax.set_xlabel(label, **kw)
200200

201201
def _outline(self, X, Y):
202202
'''

0 commit comments

Comments
 (0)