なんとかするから、なんとかなる

エンジニア関係のことを書きます

How to change a color of measurement labels in matplotlib

Introduction

This article shows how to change a color of measurement labels in matplotlib.

Solution

It's a simply way to change a color of measurement labels.

import matplotlib.pyplot as plt 
 
ax = plt.subplot(111)
for item in ax.get_xticklabels():
    item.set_color("white")
 
for item in ax.get_yticklabels():
    item.set_color("white")