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 c1aecd1

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

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
@@ -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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.