Draw the canvas when creating the ax to avoid RuntimeError