()
| 746 | |
| 747 | @image_comparison(['colorbar_keeping_xlabel.png'], style='mpl20') |
| 748 | def test_keeping_xlabel(): |
| 749 | # github issue #23398 - xlabels being ignored in colorbar axis |
| 750 | arr = np.arange(25).reshape((5, 5)) |
| 751 | fig, ax = plt.subplots() |
| 752 | im = ax.imshow(arr) |
| 753 | cbar = plt.colorbar(im) |
| 754 | cbar.ax.set_xlabel('Visible Xlabel') |
| 755 | cbar.set_label('YLabel') |
| 756 | |
| 757 | |
| 758 | @pytest.mark.parametrize("clim", [(-20000, 20000), (-32768, 0)]) |
nothing calls this directly
no test coverage detected
searching dependent graphs…