8000 Boxplot xlim not correctly calculated · Issue #13713 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
Boxplot xlim not correctly calculated #13713
Closed
@danjjl

Description

@danjjl

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

boxplot

Expected outcome

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

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.

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

      0