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

add smart fillto to enable logscale y-axis histogram barplot #3004

Merged
merged 11 commits into from
Jul 14, 2023
18 changes: 18 additions & 0 deletions ReferenceTests/src/tests/examples2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -909,6 +909,24 @@ end
f
end

@reference_test "Log y-scale histogram (barplot)" begin
# make a gap in histogram as edge case
Moelf marked this conversation as resolved.
Show resolved Hide resolved
hist(
randn(10^6);
axis=(; yscale=log2)
)
current_figure()
end

@reference_test "Log y-scale histogram (barplot) with gap" begin
# make a gap in histogram as edge case
hist(
filter!(x-> x<0 || x > 1.5, randn(10^6));
axis=(; yscale=log10)
)
current_figure()
end

@reference_test "Stephist" begin
stephist(RNG.rand(10000))
current_figure()
Expand Down