Skip to content

Plots don't respect rcParams #5

@Esfo

Description

@Esfo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions