Skip to content
Prev Previous commit
Next Next commit
fix line length
  • Loading branch information
danuo committed Nov 10, 2020
commit f09711a83904ce45540dfd8c06d14ccec98b45ff
8 changes: 4 additions & 4 deletions lib/matplotlib/colorbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,8 +727,8 @@ def set_ticklabels(self, ticklabels, update_ticks=True):
# check if explitic ticks have been supplied
if self._ticks is None:
cbook._warn_external('To set explicit ticklabels, call colorbar() '
'with ticks keyword or use set_ticks() method '
'first.')
'with ticks keyword or use set_ticks() '
'method first.')
# check if length of ticks and ticklabels match
elif len(self._ticks) != len(self._ticklabels):
cbook._warn_external('The ticklabels need to be of the same '
Expand All @@ -744,8 +744,8 @@ def set_ticklabels(self, ticklabels, update_ticks=True):
else:
cbook._warn_external('To set ticklabels, ticks of the same '
'length need to be set explicitly first. '
'This can be done through plt.colorbar(ticks) '
'or set_ticks().')
'This can be done through '
'plt.colorbar(ticks) or set_ticks().')
self.stale = True

def minorticks_on(self):
Expand Down