Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plots don't respect rcParams #5

Open
Esfo opened this issue Jul 26, 2022 · 0 comments
Open

Plots don't respect rcParams #5

Esfo opened this issue Jul 26, 2022 · 0 comments

Comments

@Esfo
Copy link

Esfo commented Jul 26, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant