-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix: flow bins xticklabel correction #502
Conversation
…awing flow bins on shared x axes
for more information, see https://pre-commit.ci
Also, to get the dashed lines and diamonds to draw correctly I needed to draw them on both the top and bottom of each axis. The diamond on the top of the top axis got in the way of labels so I removed it but I left the dashed line because I liked it. I'm not sure if this is the best choice in general. |
for h in [0, 1]: | ||
_ax.set_xticks(xticks) | ||
_ax.set_xticklabels(xticklabels) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you move the skip condition up here, wouldn't that prevent drawing the dashed line on top?
Hey, thanks for the PR and sorry for the delay in reviewing this. This looks mostly good to me, but I am not sure I understand why the dashed line needs to appear on top of the plot as well. |
Hi, yes the dashed lines don't need to appear on the top. I thought that it made the overflow bin more clear. What I will do is only include the fixes in this PR and then I will make another PR with some drawing changes that I like. |
Thanks, so this now needs to update the reference images. Check https://github.com/scikit-hep/mplhep/blob/master/CONTRIBUTING.md and let me know if you have a problem getting the pytest generation running. N.b. the images generated by pytest might register as "new" in git even if they didn't change, please don't add those to the commit to limit the repo size. |
… reference images.
Thanks a lot @atownse2! I'll mint a new release with the fix shortly. |
The issues that this PR fixes are described in #501. This includes:
xticklabels
xticklabel
on overflow bin center instead of using defaultxticks
Here are some plots I can make with this PR:
