You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[ENH]: Update grid_helper on FloatingSubplot #25426
I created a plot using FloatingSubplot and I had to define the grid_helper without having the extremes and grid locators. These are calculated later in my code, and I would like to be able to update the grid_helper (or the extremes and grid locators) on my axis once I have the correct values. I couldn't find a function to do so, could this be a new feature?
Unfortunately it is for now necessary to call clear() (and adust_axes_lim, which could reasonably be folded into clear() -- #25444); it's probably(?) possible to get rid of that and just have a self-contained method on the axes that updates just whatever is needed but that'll require a bit of careful surgery.
I haven't tested it on our software yet since I am not allowed to install any dependencies on our machines, and I am waiting for my request at work to be approved. Feel free to close the issue, if something is wrong I will inform you and reopen it. Thank you all!
Activity
anntzer commentedon Mar 12, 2023
Once #25427 gets merged, I think the following works (starting from the demo_floating_axes.py example):
Unfortunately it is for now necessary to call clear() (and adust_axes_lim, which could reasonably be folded into clear() -- #25444); it's probably(?) possible to get rid of that and just have a self-contained method on the axes that updates just whatever is needed but that'll require a bit of careful surgery.
albavilanova commentedon Mar 13, 2023
Thanks @anntzer! I will test it once it is merged. I should be able to add
grid_locator1as an argument inupdate_grid_findertoo, right?anntzer commentedon Mar 13, 2023
Perhaps? Please give it a try and let us know what works and what doesn't.
oscargus commentedon Mar 13, 2023
#25427 is now merged in main.
Higgs32584 commentedon Mar 24, 2023
Is this issue resolved?
albavilanova commentedon Mar 24, 2023
I haven't tested it on our software yet since I am not allowed to install any dependencies on our machines, and I am waiting for my request at work to be approved. Feel free to close the issue, if something is wrong I will inform you and reopen it. Thank you all!
Higgs32584 commentedon Mar 24, 2023
Oh I can't close stuff I haven't gotten my first commit yet 😂😂
albavilanova commentedon Apr 19, 2023
Just to let you know, the extremes are updating perfectly now. Many thanks!