Skip to content

Commit

Permalink
Merge pull request matplotlib#8448 from tacaswell/doc_fix_docs
Browse files Browse the repository at this point in the history
DOC: tweak API usage

self-merging to fix the 2.0.x builds
  • Loading branch information
tacaswell authored Apr 9, 2017
2 parents 8be411f + 666d972 commit e9ab1cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doc/users/plotting/colormaps/lightness.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

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

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

Expand Down Expand Up @@ -90,7 +90,8 @@
ax.xaxis.set_major_locator(ticker)
formatter = mpl.ticker.FixedFormatter(cmap_list[i*dsub:(i+1)*dsub])
ax.xaxis.set_major_formatter(formatter)
ax.xaxis.set_tick_params(rotation=50)
for label in ax.get_xticklabels():
label.set_rotation(50)

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

0 comments on commit e9ab1cf

Please sign in to comment.