8000 Minor typos in the style sheets users' guide · Issue #6180 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
Minor typos in the style sheets users' guide #6180
Closed
@anntzer

Description

@anntzer

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-issuesDocumentation

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0