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

Symlog linear region #5619

Closed
Closed
Milestone
@bartvstratum

Description

@bartvstratum

I recently postedthis question on SO, about what I believe is an incorrect behavior of setting{x/y}scale('symlog') in combination with alinthres{x/y}. For example:

importnumpyasnpimportmatplotlib.pylabasplz=np.linspace(0,1,100)x=np.ones_like(z)x[0]=0pl.figure()pl.plot(x,z,'-')pl.yscale('symlog',linthresy=1e-2)pl.xlim(-0.1,1.1)

Produces the image shown below. I would expect a linear region from 0 to 1e-2, and a log region containing 1e-2, 1e-1, 1. Why isn't this happening? Is this a bug?

figure_1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp