Scale of Curve in Hypergraph with Python
Hello,
I tried to create curve from file using python console in Hypergraph 2023.1
I have to scale my curve by 0.001 so i tried yScale property from CurveXY class with 0.001 value.
I get the error message "The value '0.001' must be an Integer". However, the documentation said : property yScale: float
Sets the scale for the Y-datasource (vector).
Here is an extract of the code where of course curve[1][5] = 0.001. I already tried with yScale = 10 and the code works well.
cu = CurveXY(
xFile=plotFile,
xType=curve[0][0],
xSubcase=curve[0][1],
xDataType=curve[0][2],
xRequest=curve[0][3],
xComponent=curve[0][4],
# xScale=int(curve[0][5]),
yFile=plotFile,
yType=curve[1][0],
ySubcase=curve[1][1],
yDataType=curve[1][2],
yRequest=curve[1][3],
yComponent=curve[1][4],
yScale=curve[1][5],
label=curve[2][0],
lineColor=curve[2][1],
)
Does anyone have a solution ?