GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — cropping in hist with multiple series · Issue #175 · matplotlib/matplotlib

cropping in hist with multiple series #175

New issue
Copy link
New issue
Copy link
Closed
Closed
cropping in hist with multiple series#175
Copy link

Description

@ddale
ddale
opened on Jun 20, 2011
Issue body actions

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

    @pelson
    pelson
    on Jun 17, 2012
    Member
    More actions

    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.

  2. pelson
    closed this as completedon Jun 17, 2012
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

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.