Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bar plot: in 2.0.0 bars not as given in the description, ie. first arg is not "left" but "center" #7954

Closed
Labels
Milestone
@t1nux

Description

@t1nux

Bug report

Bug summary

Usingbar, the first input argument is not used for the left edge of the bar, but rather the center, as if the kwargalign='center' was used. However, the desired behavior is obtained in both cases when usingalign = 'center' andalign = 'edge'. Just whenalign is not specified, it should be 'edge' aligned which it is not.

Code for reproduction

importmatplotlib.pyplotaspltplt.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


      [8]ページ先頭

      ©2009-2025 Movatter.jp