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

Boxplot xlim not correctly calculated · Issue #13713 · matplotlib/matplotlib · GitHub

Repository navigation

Boxplot xlim not correctly calculated #13713

Closed

Description

Bug report

Bug summary

In figure with multiple boxplot calls and manual positions. The xlim is not set correctly.

Code for reproduction

plt.figure()
plt.boxplot(np.random.rand(100,3), positions=[2, 4, 6])
plt.boxplot(np.random.rand(100,3), positions=[1, 3, 5])
plt.show()

Actual outcome

Expected outcome

I would have expected the xlim to be set to [0.5, 6.5].

Matplotlib version

  • Operating system: Ubuntu 16.04.6
  • Matplotlib version: 3.0.2
  • Matplotlib backend: module://ipykernel.pylab.backend_inline
  • Python version: 3.7.1
  • Jupyter version: 4.4.0

Matplotlib was installed from conda using the main channel.

Activity

  1. jon-dan commented on Mar 19, 2019

    Author

    Equivalent plot figure does produce the expected outcome.

    plt.figure()
    plt.plot([50, 150], [0, 10])
    plt.plot([0, 100], [-10, 10])
    plt.show()

  2. jon-dan commented on Mar 19, 2019

    Author

    This commit looks related to the issue: tacaswell@8c9f4d4

  3. anntzer commented on Mar 19, 2019

    Contributor

    Likely #13444 should close this.

  4. added this to the v3.1.0 milestone on Mar 19, 2019
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