xontrib-kitty icon indicating copy to clipboard operation
xontrib-kitty copied to clipboard

Plots don't respect rcParams

Open Esfo opened this issue 2 years ago • 0 comments

I can't get any intended effect out of changing matplotlib's rcParams

strangely enough, whenever I change figure.dpi it ends up changing the default color of the line I have it make

plt.rcParams['figure.dpi'] = 200
x = np.arange(10)
y = np.random.uniform(10, size=10)
plt.plot(x,y)
plt.show()

plt.rcParams['figure.dpi'] = 100
plt.plot(x,y)
plt.show()

Also, if I run ^that example twice without calling plt.clf() the figure doesn't clear it's memory and shows the old x/y values alongside the new

Esfo avatar Jul 26 '22 02:07 Esfo