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

[Bug]: pixeled dotted lines with no readability #30042

Closed as not planned
Closed as not planned
Labels
@PonySubway

Description

@PonySubway

Bug summary

Image
I run into issues in using mayplotlib and only yields pixeled dotted lines with no readability.
Anyone knows how to fix it?

Code for reproduction

importmatplotlib.pyplotaspltload= [65.0,65.0,65.0,65.0,62.0,62.0,62.0,62.0,59.0,59.0,59.0,59.0,69.0,69.0,69.0,69.0,70.0,70.0,70.0,70.0,61.0,61.0,61.0,61.0,70.0,70.0,70.0,70.0,82.0,82.0,82.0,82.0,92.0,92.0,92.0,92.0,97.0,97.0,97.0,97.0,98.0,98.0,98.0,98.0,96.0,96.0,96.0,96.0,96.0,96.0,96.0,96.0,94.0,94.0,94.0,94.0,93.0,93.0,93.0,93.0,95.0,95.0,95.0,95.0,96.0,96.0,96.0,96.0,96.0,96.0,96.0,96.0,95.0,95.0,95.0,95.0,93.0,93.0,93.0,93.0,89.0,89.0,89.0,89.0,80.0,80.0,80.0,80.0,68.0,68.0,68.0,68.0]t=np.arange(0,23,0.25)# 15-min resolution in hoursfig,ax=plt.subplots(figsize=(12,4),dpi=140)# bigger & sharperax.step(t,load,where="post",lw=2)# solid 2-pt staircaseax.set_xlim(0,24)ax.set_xticks(np.arange(0,25,2))ax.set_xlabel("Hour of day")ax.set_ylabel("% of daily peak")ax.set_title("IEEE RTS – Typical Daily Load Profile")ax.grid(ls="--",alpha=0.3)# light, unobtrusive gridplt.tight_layout()plt.show()

Actual outcome

Image

Expected outcome

readable figures

Additional information

No response

Operating system

No response

Matplotlib Version

3.8.4

Matplotlib Backend

No response

Python version

3.9

Jupyter version

No response

Installation

pip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp