Skip to content

Use plt.stairs in animated histogram example #18570

Closed

Description

@ianhi

Problem

It should be possible to radically simplify https://matplotlib.org/3.3.1/gallery/animation/animated_histogram.html#sphx-glr-gallery-animation-animated-histogram-py by using the new stairs methods https://matplotlib.org/devdocs/api/_as_gen/matplotlib.axes.Axes.stairs.html?highlight=stairs#matplotlib.axes.Axes.stairs

Suggested Improvement

Option 1: Replace the existing example with one using plt.stairs and the return values set_data method
Option 2: Use plt.stairs for the animation example and rename the current example to something about manipulating patches manually.

Activity

  1. added
    🌱 Good first issueOpen a pull request against these issues if there are no active ones!
    on Oct 19, 2020
  2. timhoffm commented on Nov 6, 2020

    @timhoffm
    Member

    IMHO the example is clear and simple through #18821. No need for further action.

  3. removed
    🌱 Good first issueOpen a pull request against these issues if there are no active ones!
    on Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions