1
I try to change the background of my chart with the 'Seaborn' module, however, I am not successful. I installed the module today (16/04/2021).
code:
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
arrayx = np.arange(0,10,0.1)
arrayy = np.sin(arrayx)
dat = {"x":arrayx,"y":arrayy}
sns.lineplot(x="x",y="y",data=dat)
sns.set(style='darkgrid')
plt.show()
I also tried other functions such as sns.set_style("darkgrid")
and it didn’t work either.
Thank you so much! Really, I just had to add before the graph generation.
– Victor Coutinho
@Victorcoutinho If the answer solved your problem, accept the answer as a favorite and give a +1 answer. So you help others find the best solution.
– Cmte Cardeal