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

yscale('log') broken for histogram · Issue #9247 · matplotlib/matplotlib · GitHub

Repository navigation

yscale('log') broken for histogram #9247

Closed

Description

Bug report

Bug summary

Setting the yscale to log in histogram results in empty plot

Code for reproduction

import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt

plt.figure()
plt.hist(np.random.normal(size=1000))
plt.yscale('log')
plt.show()

Actual outcome

Expected outcome

Matplotlib version

  • Operating System: Archlinux
  • Matplotlib Version: 2.1.0rc1+49.g20aff4baa
  • Python Version: 3.6
  • Jupyter Version (if applicable): notebook 5.1
  • Other Libraries:

Activity

  1. tacaswell commented on Sep 28, 2017

    Member

    plt.yscale('log', nonposy='clip') will show the histogram on the log scale.

  2. weninc commented on Sep 28, 2017

    Author

    ah yes that works. Wasn't aware of the change

  3. tacaswell commented on Sep 28, 2017

    Member

    No worries!

  4. added this to the milestone on Sep 28, 2017
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL