8000 bar plot: in 2.0.0 bars not as given in the description, ie. first arg is not "left" but "center" · Issue #7954 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
bar plot: in 2.0.0 bars not as given in the description, ie. first arg is not "left" but "center" #7954
Closed
@t1nux

Description

@t1nux

Bug report

Bug summary

Using bar, the first input argument is not used for the left edge of the bar, but rather the center, as if the kwarg align='center' was used. However, the desired behavior is obtained in both cases when using align = 'center' and align = 'edge'. Just when align is not specified, it should be 'edge' aligned which it is not.

Code for reproduction

import matplotlib.pyplot as plt
plt.bar([1], [1])
plt.show()

Actual outcome
figure_1
Expected outcome
figure_2

In matplotlib 1.5.3 I got the expected behavior.

Matplotlib version
matplotlib 2.0.0
python 3.6.0
both installed from the Arch Linux repository.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0