Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Commit

Permalink
Merge pull request #4 from nschloe/color-axis-label
Browse files Browse the repository at this point in the history
set color on axis label, too
  • Loading branch information
nschloe authored Apr 30, 2020
2 parents 1451b8d + ce211d6 commit 6a73de5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cleanplotlib/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,11 @@ def multiplot(
# no minor ticks, no major ticks on the y-axis (we have the grid here)
ax.tick_params(which="minor", length=0)
ax.tick_params(axis="y", which="major", length=0)
ax.tick_params(axis="x", which="major", color=_grid_color)
ax.tick_params(axis="x", which="major", color=_grid_color, labelcolor=_grid_color)
ax.tick_params(axis="y", which="major", labelcolor=_grid_color)

# > Make sure your axis ticks are large enough to be easily read.
# > You don't want your viewers squinting to read your plot.
# Wait for
# <https://github.com/matplotlib/matplotlib/issues/17259> to have all entities
# colored.
plt.xticks(fontsize=fontsize, color=_grid_color)
plt.yticks(fontsize=fontsize, color=_grid_color)

Expand Down

0 comments on commit 6a73de5

Please sign in to comment.