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

Bars are not visible in bar plot when log scale is enabled #9701

Closed
@laborleben

Description

@laborleben

When enabling log scale for the bar plot, the bars are not plotted properly and the plot is empty.

See also this bug report#163 and the corresponding fix#2147.

Commitdda42ab changed the default value ofnonpos parameter fromclip tomask which introduced the issue. I cannot tell whetherclip should be default behavior ormask doesn't work as intended.

importmatplotlib.pyplotaspltplt.bar(x=[1,2,3],height=[1000,2,3])plt.yscale("log")plt.show()

Result is an empty plot. Saving to an image file or PDF doesn't make a change.

Adding

plt.yscale("log",nonposy="clip")

fixes that issue.

Additional info:
Latest Miniconda
Various platforms (Ubuntu 16.04, Windows 10, macOS)
Matplotlib 2.1.0, Qt5Agg (from Anaconda)

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