Skip to content

Commit 21c76de

Browse files
committed
adding a method to ease updating
1 parent 769843a commit 21c76de

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pygame_matplotlib/gui_window.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,8 @@ def set_dimensions(self, *args, **kwargs):
4040
print("setting dimensions")
4141
# Update the size of the figure with the new bounding rectangle
4242
self.figuresurf.set_bounding_rect(self.get_container().get_rect())
43+
self.update_window_image()
44+
45+
def update_window_image(self):
4346
# Update the image of the container
4447
self.get_container().set_image(self.figuresurf)

0 commit comments

Comments
 (0)