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

Make set_yscale("log") consistent with semilogy()#8537

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
dstansby wants to merge2 commits intomatplotlib:masterfromdstansby:fix-logclip

Conversation

dstansby
Copy link
Member

This is an update of#8056, whichfixes#8045 - I have now added the new test image, which should make the tests pass. Thanks to@jcalbert for the original fix.

emmyzeroand others added2 commitsApril 25, 2017 19:51
 clipping behavior as plt.semilogy(), plt.semilogx() plt.loglog()when handing non-positive data.
@dstansbydstansby added this to the2.0.1 (next bug fix release) milestoneApr 26, 2017
@phobson
Copy link
Member

If you remove the re-generated image, does it pass? (I can't spot the differences in the github UI)

          ImageComparisonFailure: images not close (RMS 0.044):          result_images/test_axes/log_scales_svg.png          result_images/test_axes/log_scales-expected_svg.png

@dstansby
Copy link
MemberAuthor

It seems to be the svg image (not the png one, which I updated) which is failing.

It's not failing locally on my OSX machine, and isn't failing on the OSX build either, so there must be a difference between linux and OSX when it comes to svg.

@phobson
Copy link
Member

@dstansby maybe you need regenerate the SVG too.

@dstansby
Copy link
MemberAuthor

It's not failing on my machine, so I have no way to regenerate it! I presume if a linux box regenerated it the OSX build would fail?

@QuLogicQuLogic modified the milestones:2.0.1 (next bug fix release),2.0.2 (next bug fix release)May 3, 2017
@dstansby
Copy link
MemberAuthor

(note to myself to restart travis when#8672 gets merged)

@anntzer
Copy link
Contributor

@dstansby done for you.

dstansby reacted with heart emoji

@dstansby
Copy link
MemberAuthor

Restarting travis didn't move the build to 14.04, so manually cycling the PR.

@dstansbydstansby reopened thisJun 7, 2017
@dstansby
Copy link
MemberAuthor

Huh, still no luck on travis, will try and see what happens on a local linux box at some point.

@tacaswell
Copy link
Member

Can you check the history of why this was changed to clip? I have a vague memory that there was a long discussion at the time...

@dstansby
Copy link
MemberAuthor

It was originally changed to fix#163 (comment) - changing it back will break that problem, so I adding the code in that comment as a test would be a good idea.

@tacaswell
Copy link
Member

I do not see what changed about the test image...

@efiring
Copy link
Member

I think the basic idea of this--essentially reverting#2147 and thereby restoring problematic errorbar behavior (#163)--will have to be noted, and we will have to be prepared for someone to raise the issue again. Overall I think it is an improvement, though.

I think that the errorbar problem could be fixed in the errorbar code in this way: for any errorbar covering a range from negative to positive values, insert a point in the Line2D at 1e-300. It would have no effect with a linear scale, and with a log scale it would allow a line to be plotted after the negative end-point is masked out. Worth the trouble? I'm not sure.

@tacaswelltacaswell modified the milestones:2.1 (next point release),2.0.3 (next bug fix release)Jun 25, 2017
@tacaswell
Copy link
Member

I am in favor of:

@dstansbydstansby deleted the fix-logclip branchJuly 3, 2017 20:34
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
v2.1
Development

Successfully merging this pull request may close these issues.

setting yscale to log, after drawing a plot with values equal to zero, results in incorrect handling of zero values
7 participants
@dstansby@phobson@anntzer@tacaswell@efiring@QuLogic@emmyzero

[8]ページ先頭

©2009-2025 Movatter.jp