check which figure is the larges and calculate then the canvas/window size
check which figure is the larges and calculate then the canvas/window size