Do axis resize (to make room for the legend) on every canvas resize.

Makes it work properly without the GUI.