I have a figure with several axes open. The main axis holds a data plot. Another holds a slider to control a variable, which in turn affects the plot (works fine). Another holds a "homemade" legend with checkboxes (using a modified version of the CheckButton widget class), which also affect the plot (works fine). Lastly, an axis holding a Button widget instance to generate a plot based on the current main plot data (works fine). These are all plotted using matplotlib from Spyder with the Qt5agg interactive backend.
Okay, here's what I'm having issues with. Upon window resizing, all of my figures resize to match their predefined scaling (which I believe are in normalized units, where (0,0) is bottom left of figure, and (1,1) its top right). In my scenario, I would like to disable this relative scaling for all axes but the main plot axis. This should theoretically be possible, as this is the behavior observed by any given plot's legend. Matter of fact, I was able to accomplish this for the "homemade" legend object (with checkboxes) by interacting with the legend class.
Is there a way to see matplotlib's Legend class code? Or better yet, to know which part of it covers this resize prevention protocol? Essentially, the endgame is to give axes absolute, and not relative size.
The only other question I found for this type of issue is the following:
matplotlib: resize figure window without scaling figure content
Unfortunately, no good resolution found...
Any help is greatly appreciated!