"matplotlib style sheet not being applied" Code Answer

37

The stylesheet parameters are applied at the time the object that uses them is created.

E.g. if you want to have a figure and axes in a given style, you need to set the style sheet before creating them via plt.subplots.

plt.style.use('fivethirtyeight')
fig, graph_1 = plt.subplots()
By Daniel Beck on October 9 2022

Answers related to “matplotlib style sheet not being applied”

Only authorized users can answer the Search term. Please sign in first, or register a free account.