Open rheiland opened 1 year ago
colorbar for .mat
coloring of cells seems to be located and sized by pixels, rather than normalized units sometimes causing it to enter the axes:
I noticed something similar a couple days ago which makes me think recent edits have caused it as it used to display properly. Not sure what may have caused it. One obvious debug is to test with previous releases. Edit: Maybe I was wrong. Maybe this annoyance was always present but it just didn't show up unless one resized the plotting window in various ways.
In this release, https://github.com/PhysiCell-Tools/PhysiCell-Studio/releases/tag/v2.32.0, we introduced colorbars for cells' discrete scalars. Testing the release just before that (2.31.2), we don't see the weird placement of that lower colorbar. I imagine @vincent-noel is swamped with other things right now (as most of us are), but FYI. Positioning colorbars on resizable windows is tricky, but hopefully there's some "tight" mpl magic that will work.
and this screenshot shows the situation using the latest release, with discrete scalars colorbar essentiall going out-of-view on a window resize.
Yes, I noticed it too. It's on my todo list, but I couldn't find time yet...
I've spent a LONG time looking at possible fixes for the colorbars and the discrete scalars legend. If anyone has time to test, it's in https://github.com/PhysiCell-Tools/PhysiCell-Studio/tree/dev-colorbars . I still need to test for physiboss vis... actually, I'm hoping Vincent or Marco can test as they know it best.
This fixes it for me on my m2 mac!
Thanks Randy ! I'll have a look asap