Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix representation of zero-valued bins on step-histograms with log-y axis #2081

Merged
merged 2 commits into from
Jul 2, 2019
Merged

Fix representation of zero-valued bins on step-histograms with log-y axis #2081

merged 2 commits into from
Jul 2, 2019

Conversation

oschulz
Copy link
Contributor

@oschulz oschulz commented Jun 30, 2019

Zero-values bins are at minus infinity on y-logscale, so they shouldn't be drawn.

Before:

julia> stephist(vcat(randn(10^5).-10, randn(10^5).+10), normalize = true, bins = 500, yscale = :log10)

loghist-sep-peaks-before

After:

loghist-sep-peaks-after

oschulz added 2 commits June 30, 2019 17:42
Bins with weight NaN and zero (which the Plots engine seems to
turn into into NaN automatically for log-yscale) should
not be draws in log-yscale.
@oschulz
Copy link
Contributor Author

oschulz commented Jul 1, 2019

Regarding CI failing on Travis: I get a difference of about 0.001 for the three failed image comparisons when I run the tests locally (on Linux). So I think they're actually fine.

How do I make Plots store the results of the test run as image files, for a visual comparison? I know there's a way, but I forgot how.

@yha
Copy link
Member

yha commented Jul 1, 2019

How do I make Plots store the results of the test run as image files, for a visual comparison? I know there's a way, but I forgot how.

This should be easier once #2064 is merged: see #2062 (review)

@daschw
Copy link
Member

daschw commented Jul 1, 2019

The reasons for the tests failing is a change in Showoff v0.3.0 (introduced by myself 😓). There's already a fix, we just have to wait until v0.3.1 gets registered (JuliaRegistries/General#1671).

@daschw daschw merged commit 2816b11 into JuliaPlots:master Jul 2, 2019
@oschulz
Copy link
Contributor Author

oschulz commented Jul 2, 2019

Thanks, @daschw !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants