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 / hist : gap between first bar and other bars with lw=0.0 #4602

Closed
@damiendr

Description

@damiendr

I like to make solid bar plots without lines around each bar, eg:

plt.hist(data,fc="gray",lw=0.0,alpha=0.5)

Problem: the first bar does not exactly line up with the other bars. There is a slight misalignment visible on the right and bottom edges. Depending on the window size this shows either as a white gap or a darker overlap (visible because alpha=0.5).

The other bars are all properly lined up.

Confirmed both in the notebook inline mode and the QT backend on OSX.
matplotlib.__version__ = '1.4.3'

Steps to reproduce:

importmatplotlib.pylabaspltimportnumpyasnpplt.figure()plt.hist(np.random.uniform(0.0,1.0,size=1000),fc="gray",lw=0.0,alpha=0.5)plt.show()

Then resize the window and observe.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp