8000 Merge pull request #6195 from story645/patch-2 · matplotlib/matplotlib@c1aecd1 · GitHub
[go: up one dir, main page]

Skip to content

Commit c1aecd1

Browse files
committed
Merge pull request #6195 from story645/patch-2
Documentation bug #6180
2 parents c6786bb + d9f68ee commit c1aecd1

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
@@ -19,7 +19,7 @@ just add::
1919

2020
To list all available styles, use::
2121

22-
>>> print plt.style.available
22+
>>> print(plt.style.available)
2323

2424

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

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

0 commit comments

Comments
 (0)
0