Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I have jupyter dark themes installed. My graphs sometimes look normal and sometimes it is very hard to read x, y axes. Same matplotlib code gives different results Easy to read graph

Hard to read graph


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
316 views
Welcome To Ask or Share your Answers For Others

1 Answer

You can set style in matplotlib. You want dark_background

from matplotlib import style
print(style.available)

#['Solarize_Light2',
# '_classic_test_patch',
# 'bmh',
# 'classic',
# 'dark_background',
# 'fast',
# 'fivethirtyeight',
# 'ggplot',
# 'grayscale',
# 'seaborn',
# 'seaborn-bright',
# 'seaborn-colorblind',
# 'seaborn-dark',
# 'seaborn-dark-palette',
# 'seaborn-darkgrid',
# 'seaborn-deep',
#'seaborn-muted',
# 'seaborn-notebook',
# 'seaborn-paper',
# 'seaborn-pastel',
# 'seaborn-poster',
# 'seaborn-talk',
#'seaborn-ticks',
# 'seaborn-white',
# 'seaborn-whitegrid',
# 'tableau-colorblind10']

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...