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

Minor typos in the style sheets users' guide #6180

Copy link
Copy link
Closed
@anntzer

Description

@anntzer
Issue body actions

I can't get the docs to build properly so I'll just report an issue instead of a PR...
http://matplotlib.org/users/style_sheets.html

>>> print plt.style.available

should probably be switched to Py3 print()

>>> import numpy as np
>>> import matplotlib.pyplot as plt
>>>
>>> with plt.style.context(('dark_background')):
>>>     plt.plot(np.sin(np.linspace(0, 2*np.pi)), 'r-o')
>>>
>>> # Some plotting code with the default style
>>>
>>> plt.show()

extra parenthesis around 'dark_background', spaces needed in 2 * np.pi, and the >>> prompts with nothing else on the line are not highlighted properly (I would just get rid of all >>> prompts anyways, see e.g. the pyplot tutorial).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Difficulty: Easyhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesDocumentation

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.