In [1]:
import matplotlib.pyplot as plt
In [4]:
for style in plt.style.available:
try:
x = [1,2,3,4,5]
y = [1,4,9,16,25]
plt.style.use(style)
fig, ax = plt.subplots()
ax.plot(x, y)
ax.set_title(style, fontsize=51)
ax.set_xlabel('value', fontsize=14)
ax.set_ylabel('value * value', fontsize=14)
ax.tick_params('both', lablesize=24)
plt.show()
except:
pass
D:\Users\Administrator\anaconda3\envs\python3.6\lib\site-packages\ipykernel_launcher.py:6: RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (`matplotlib.pyplot.figure`) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParam `figure.max_open_warning`).