Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e277f99

Browse files
committed
Merge pull request #6195 from story645/patch-2
Documentation bug #6180
1 parent d74eca5 commit e277f99

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

doc/users/style_sheets.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ just add::
1818

1919
To list all available styles, use::
2020

21-
>>> print plt.style.available
21+
>>> print(plt.style.available)
2222

2323

2424
Defining your own style
@@ -72,12 +72,11 @@ to change the global styling, the style package provides a context manager
7272
for limiting your changes to a specific scope. To isolate the your styling
7373
changes, you can write something like the following::
7474

75-
7675
>>> import numpy as np
7776
>>> import matplotlib.pyplot as plt
7877
>>>
7978
>>> 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')
8180
>>>
8281
>>> # Some plotting code with the default style
8382
>>>

0 commit comments

Comments
 (0)