-
-
Notifications
You must be signed in to change notification settings - Fork 291
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
make hist more flexible #1150
make hist more flexible #1150
Conversation
@piever @jkrumbiegel do you have any concerns about this, or can we merge? |
Nice! I've added a couple of comments, based on the observation that the API should try to respect as much as possible the proportionality between bar length and number of entries in bin. |
We wanted to find a consistent "interface" for these flipping keywords. (Also because AlgebraOfGraphics should be able to use this information). We currently have |
IIUC, |
Alright, I removed fig = Figure()
ax = Axis(fig[1, 1])
for i in 1:5
hist!(ax, randn(1000), scale_to=-0.6, offset=i, direction=:x)
end
fig |
LGTM! I've just added a small comment to disable |
Co-authored-by: Pietro Vertechi <pietro.vertechi@neuro.fchampalimaud.org>
With
scale_to
,offset
,fillto
andflip
, one can put multiple histograms into the same plot: