・ People who use dark themes in google colaboratory but are having trouble seeing the scales and labels in the figure.
The standard theme is dull, but the dark theme is cool. It's motivating and easy on the eyes even at night.
However, there is one drawback. That is, the scales and labels on the figure are crushed. Let's plot 50 randomly random scatter plots.
python
import numpy as np
import matplotlib.pyplot as plt
a = np.random.rand(50)
b = np.random.rand(50)
plt.scatter(a,b)
can not see... The reason is that the background of the scale and label part is a transparent image, so it is difficult to see the characters of the same color as the background image.
Let's add the text below.
python
import seaborn as sns
sns.set()
This is the same
python
plt.scatter(a,b)
Then It looked beautiful. If you do not include sns.set (), the label and scale will be transparent images even if you are seaborn, so be careful.
Recommended Posts