-
Notifications
You must be signed in to change notification settings - Fork 192
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
Fix BandsData issue related to the k-points labels #2492
Fix BandsData issue related to the k-points labels #2492
Conversation
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.
Hi @yakutovicha, do you know if it's easy to fix also the other problem (namely, if the first point with a label is not the one with index = 0, how to avoid that the first part of the band is not shown, and similarly for the last point in the path?)
Sorry, I see that it's in the issue. |
Hi Giovani, thanks, yes I forgot to put [WIP] yesterday, now it is there. |
If the first and/or the last kpoint label does not point to the first and/or the last kpoint - the plotted band structure was cut on the left and/or right sides. To avoid this I add empty labels to the first and/or the last kpoints if they are not labeled.
@giovannipizzi, I think I am done with the PR. Please review it and let me know if something else still needs to be done. |
There currently is an issue with matplotlib on macos, so I can't really test it:
I'll test on QM when I have time |
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.
tested on ubuntu & works. thanks for the fix!
|
||
labels = [(0, u'GAMMA'), | ||
(5, u'X'), | ||
(6, u'X'), |
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.
Thanks! Just a question, is this meant to be X
or should it be Y
?
Also, could you also do a PR against provenance_redesign? Thanks! |
fixes #2491