-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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 example for plotting a bihistogram #27182
Conversation
I think this example is well done and useful! Only suggestion is that I think it would make more sense visually when comparing datasets like this to have a constant bin width rather than constant number of bins, and share them between the datasets. For example: bin_width = 0.25
bins = np.arange(np.min([dataset1, dataset2]), np.max([dataset1, dataset2]) + bin_width, bin_width)
ax.hist(dataset1, bins=bins, label="Dataset 1") |
That's a good catch, totally agree. I've added that in, thanks for taking a look! |
The built docs look good to me. |
@i-jey thanks and congratulations on your first contribution to Matplotlib! 🎉 We hope to see you again! |
PR summary
Adds an example to the documentation for plotting a bihistogram (see the closed PR #27180 for prior discussion)
PR checklist