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

Support manual range for hist display #255

Merged
merged 2 commits into from
Sep 16, 2021
Merged

Support manual range for hist display #255

merged 2 commits into from
Sep 16, 2021

Conversation

timholy
Copy link
Member

@timholy timholy commented Sep 16, 2021

This allows one to manually set the range of the histogram during
display via an IOContext. The main use-case is for comparing
multiple @benchmark runs using a common axis for the
histogram.

Here's an example from the manual:

image

CC @tecosaur

This allows one to manually set the range of the histogram during
display via an `IOContext`. The main use-case is for comparing
multiple `@benchmark` runs using a common axis for the
histogram.
@tecosaur
Copy link
Collaborator

I'm very happy to see this PR, thanks Tim! I've been wanting to make the histogram customisable like this for some time now, but have just been too busy. To me, the way this has been implemented looks pretty reasonable. A setup parameter would likely be a bit easier to use … but this isn't "setup", and no better alternative comes to my mind.

@vchuravy
Copy link
Member

This is great!

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