Created
March 25, 2021 10:42
-
-
Save hashABCD/93a2a45f4dc48f0f5ebfdc610633678e to your computer and use it in GitHub Desktop.
matplotlib_style_iterator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
a=[1,2,3,4] | |
b=[4,8,7,3] | |
def plotter(s): | |
plt.figure() | |
plt.style.use(s) | |
plt.plot(a,b) | |
plt.title(s) | |
plt.show() | |
styles=plt.style.available | |
for s in styles: | |
plotter(s) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment