🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Scale of Curve in Hypergraph with Python

User: "EMAMIHAJA"
Altair Community Member
Updated by EMAMIHAJA

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 ?

Find more posts tagged with

Sort by:
1 - 1 of 11