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

Skip to content

Commit e9ab1cf

Browse files
authored
Merge pull request #8448 from tacaswell/doc_fix_docs
DOC: tweak API usage self-merging to fix the 2.0.x builds
2 parents 8be411f + 666d972 commit e9ab1cf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/users/plotting/colormaps/lightness.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
# squeeze=False to handle similarly the case of a single subplot
4242
fig, axes = plt.subplots(nrows=nsubplots, squeeze=False,
43-
figsize=(7, 2.6*nsubplots))
43+
figsize=(7, 2.6*nsubplots))
4444

4545
for i, ax in enumerate(axes.flat):
4646

@@ -90,7 +90,8 @@
9090
ax.xaxis.set_major_locator(ticker)
9191
formatter = mpl.ticker.FixedFormatter(cmap_list[i*dsub:(i+1)*dsub])
9292
ax.xaxis.set_major_formatter(formatter)
93-
ax.xaxis.set_tick_params(rotation=50)
93+
for label in ax.get_xticklabels():
94+
label.set_rotation(50)
9495

9596
ax.set_xlabel(cmap_category + ' colormaps', fontsize=14)
9697
fig.text(0.0, 0.55, 'Lightness $L^*$', fontsize=12,

0 commit comments

Comments
 (0)