You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1bcfbdd
Browse filesBrowse the repository at this point in the historyBrowse files
Any plot generated after changing parameters in `.rcParams` will be affected by the setting.
390
400
401
+
```
402
+
403
+
```{code-cell} python3
391
404
fig, ax = plt.subplots()
392
405
x = np.linspace(-4, 4, 150)
393
406
for i in range(3):
@@ -397,11 +410,22 @@ for i in range(3):
397
410
ax.plot(x, y, linewidth=2, alpha=0.6, label=current_label)
398
411
ax.legend()
399
412
plt.show()
413
+
```
414
+
415
+
Apply the `default` style sheet again to change your style back to default
416
+
417
+
```{code-cell} python3
418
+
419
+
plt.style.use('default')
420
+
421
+
#set default figure size
422
+
plt.rcParams["figure.figsize"] = (10, 6)
400
423
401
424
```
402
425
403
426
Here are [more examples](https://www.datafantic.com/the-magic-of-matplotlib-stylesheets/) on how to change these parameters.
404
427
428
+
405
429
## Further Reading
406
430
407
431
* The [Matplotlib gallery](http://matplotlib.org/gallery.html) provides many examples.
0 commit comments