Skip to content

DOC: plot doesn't show in some environments #43560

@woodvi

Description

@woodvi

  • I have checked that the issue still exists on the latest versions of the docs on master here

Location of the documentation

https://pandas.pydata.org/docs/dev/user_guide/10min.html#plotting

Documentation problem

When following the tutorial, plot may not appear, depending on the environment. Some environments require plot.show, some will require plot.savefig.
PR #43544 adds a very brief explanation.

Suggested fix for documentation

If running under Jupyter Notebook, the plot will appear on ~ts.plot. Otherwise use matplotlib.pyplot.show to show it or matplotlib.pyplot.savefig to write it to a file.

plt.show();

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocsNeeds TriageIssue that has not been reviewed by a pandas team member

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions