Open spapa013 opened 3 years ago
Can you clarify what the "issue" you are having is? Your code snippet works as expected for me when I manually resize the plot using the grey triangle in the bottom right.
I see, when I resize the plot with the gray triangle, the action is triggered. But when I resize the canvas using fig.set_size_inches()
, it is not triggered. Is 'resize_event' only mapped to the gray triangle?
related issue: https://github.com/matplotlib/matplotlib/issues/20316
I think that this is indeed a bug. It seems to work from scripts for both manual resize and for for set_size_inches
Describe the issue
I am having an issue specifically with the Resize callback. The other callback options appear to work as expected. For example replacing
'resize_event'
with'draw_event'
in the code block below gives no issues.Versions