Skip to content
Prev Previous commit
Next Next commit
line length
  • Loading branch information
danuo committed Nov 14, 2020
commit f993a3e8841718d5ba0138d32622215010348ef9
4 changes: 2 additions & 2 deletions lib/matplotlib/tests/test_colorbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,8 +733,8 @@ def test_colorbar_ticklabels_no_ticks():
plt.imshow(np.arange(100).reshape((10, 10)))
ticklabels = ['cat', 'dog', 'dog']
with pytest.warns(
UserWarning, match='To set explicit ticklabels, call colorbar\\(\\) '
'with ticks keyword or use set_ticks\\(\\) '
UserWarning, match='To set explicit ticklabels, call colorbar'
'\\(\\) with ticks keyword or use set_ticks\\(\\) '
'method first.'):
plt.colorbar(ticks=None, ticklabels=ticklabels)
fig.canvas.draw()