Repainting when new graph menu item is selected.