From ce211d67e318dff27dbfbf1721c01a37273d4612 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nico=20Schl=C3=B6mer?= Date: Thu, 30 Apr 2020 12:42:30 +0200 Subject: [PATCH] set color on axis label, too --- cleanplotlib/main.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cleanplotlib/main.py b/cleanplotlib/main.py index eb5396e..d82f0f2 100644 --- a/cleanplotlib/main.py +++ b/cleanplotlib/main.py @@ -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 - # to have all entities - # colored. plt.xticks(fontsize=fontsize, color=_grid_color) plt.yticks(fontsize=fontsize, color=_grid_color)