FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

cropping in hist with multiple series · Issue #175 · matplotlib/matplotlib · GitHub

Repository navigation

cropping in hist with multiple series #175

Closed

Description

Original report at SourceForge, opened Sat Nov 13 09:49:26 2010

To replicate:
pylab.hist([linspace(0,10,100),linspace(20,30,100)])
This will produce a figure exactly identical to
pylab.hist(linspace(0,10,100)).
But the expected behavior should is closer to
pylab.hist(linspace(0,10,100))
pylab.hist(linspace(20,30,100))

The simplest fix would be to make it so the default range gets set to the min and max across all series. (0,30) in my example
Something better could probably be done so that each series gets distributed across the same number of bins.

Activity

  1. pelson commented on Jun 17, 2012

    Member

    I don't think this is the case any more.

    The result of pylab.hist([linspace(0,10,100),linspace(20,30,100)]) is a histogram with 10 bars in the range (0, 30), where the histograms leave space to represent two datasets side by side.
    The result of pylab.hist(linspace(0,10,100)) is a histogram with 10 bars in the range (0, 10).
    The result of pylab.hist(linspace(0,10,100)); pylab.hist(linspace(20,30,100)) is a histogram with 10 bars between (0, 10) and 10 bars between (20, 30) without side-by-side space for dataset comparison.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL