8000 "if 1:" blocks in examples · Issue #12191 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
"if 1:" blocks in examples #12191
Closed
Closed
@timhoffm

Description

@timhoffm

Bug report

Some examples contain code in an if 1: block.

e.g. https://matplotlib.org/devdocs/gallery/axisartist/demo_axisline_style.html
or https://matplotlib.org/devdocs/gallery/event_handling/pick_event_demo.html

IMO this does not make sense and is rather confusing for the reader.

The condition should simply be removed for trivial cases, or replaced by functions if appropriate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Difficulty: Easyhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesGood first issueOpen a pull request against these issues if there are no active ones!

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0