File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ just add::
18
18
19
19
To list all available styles, use::
20
20
21
- >>> print plt.style.available
21
+ >>> print( plt.style.available)
22
22
23
23
24
24
Defining your own style
@@ -72,12 +72,11 @@ to change the global styling, the style package provides a context manager
72
72
for limiting your changes to a specific scope. To isolate the your styling
73
73
changes, you can write something like the following::
74
74
75
-
76
75
>>> import numpy as np
77
76
>>> import matplotlib.pyplot as plt
78
77
>>>
79
78
>>> with plt.style.context(('dark_background')):
80
- >>> plt.plot(np.sin(np.linspace(0, 2* np.pi)), 'r-o')
79
+ >>> plt.plot(np.sin(np.linspace(0, 2 * np.pi)), 'r-o')
81
80
>>>
82
81
>>> # Some plotting code with the default style
83
82
>>>
You can’t perform that action at this time.
0 commit comments