Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e277f99

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

File tree

Expand file treeCollapse file tree

1 file changed

+2
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-3
lines changed

‎doc/users/style_sheets.rst

Copy file name to clipboardExpand all lines: doc/users/style_sheets.rst
+2-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.