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

default value oflines.dash_capstyle #7174

Closed
@tacaswell

Description

@tacaswell

In#7087@rougier asked about changing the defaultdash_capstyle to 'round'. This is what it would look like on top of the rest of the changes.

so

importnumpyasnpimportmatplotlib.pyplotaspltimportmatplotlibasmplfromcyclerimportcyclerfig, (ax1,ax2)=plt.subplots(1,2,figsize=(6,3))N=15x=np.arange(N)y=np.ones_like(x)sty_cycle= (cycler('ls', ['--' ,':','-.'])*cycler('lw', [None,1,2,5]))classic= {'lines.dash_capstyle':'butt'}v2= {'lines.dash_capstyle':'round'}defdemo(ax,rcparams,title):ax.axis('off')ax.set_title(title)withmpl.rc_context(rc=rcparams):forj,styinenumerate(sty_cycle):ax.plot(x,y+j,**sty)demo(ax1,classic,'v2.0')demo(ax2, {},'v2.0 + rounded')

I am not a huge fan of the rounded caps, it is barely noticeable at small line widths and looks worse at large linewidths (IMO).

It would also require re-doing the dash patterns.

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