-
Notifications
You must be signed in to change notification settings - Fork 51
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
vmax and ticks #38
Comments
Dear @w-yuxuan First of all, BandUP was developed by @paulovcmedeiros , I just collaborated. Unfortunately, Paulo does not actively maintain the project anymore. Later, I developed a similar tool (but fully in python) banduppy : https://github.com/band-unfolding/banduppy/tree/master/banduppy Could you try that, and say if it works for you? I am able to provide a better support for banduppy. About v-ticks in colorbar, looks like it is hard-coded to be integers: bandup/src/python_interface/bandupy/plot.py Lines 735 to 737 in bd3ff1f
So, you will need to modify line 735 to your taste, smth like
Regarding Greek letters, there should not be a problem with matplotlib : https://matplotlib.org/stable/users/explain/text/mathtext.html Did you try to give it as Please, tell me if this works. Note: banduppy also has a plotting routine, but much simpler (less options, but easier to understand and modify) |
thank you so so much for pointing me to the specific line!! Unfortunately it didn't work but "!G " worked. The vmax ticks line worked very well and this is what I ended up to make it even better: cb_yticks = np.linspace(image.norm.vmin, image.norm.vmax, 5, endpoint=True). |
Dear Dr. Tsirkin,
Thank you for building the amazing bandup package!
When the vmax is less than 1, I noticed that the color bar doesn't show the upper range like attached. Is there a setting for it to show fraction like 0.4? I tried adding: --cb_label --round_cb 2 --disable_auto_round_vmin_and_vmax
Can I make the code display the greek letter gamma? I notice the issue only when I have discontinuities like U,K.
![0k-4 0to4](https://private-user-images.githubusercontent.com/111606884/281037581-e4e67e9e-68d0-4083-89cf-800794b8eb09.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAyNjIzMTEsIm5iZiI6MTcyMDI2MjAxMSwicGF0aCI6Ii8xMTE2MDY4ODQvMjgxMDM3NTgxLWU0ZTY3ZTllLTY4ZDAtNDA4My04OWNmLTgwMDc5NGI4ZWIwOS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcwNlQxMDMzMzFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02NzJhOWRlZTkwNGEyOWU2YjBlNDUwMjBkNjkyOGY4OGJjM2FhOGJjY2I0OWZlZDVjYTYxZjBiYjU1Y2I1MGNiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.Dkz9csEK1e_lJH6fH5fNr0ZGJtqqX4d36N5khMXiHUE)
I tried // Gamma too. Thank you so much!
The text was updated successfully, but these errors were encountered: