Skip to content

Support manual range for hist display#255

Merged
vchuravy merged 2 commits intomasterfrom
teh/histrange
Sep 16, 2021
Merged

Support manual range for hist display#255
vchuravy merged 2 commits intomasterfrom
teh/histrange

Conversation

@timholy
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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