, then this assignment throws a ValueError [...] for the first diagram traceObject.diagrams[0].y_axis.mode = Axis