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