Closed
Description
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.