# Add these chart.x_axis.delete = False chart.y_axis.delete = False
I had the exact same issue. For some reason you have to specify not to delete them.