Python to Get Exponential Curve Values/Expression

Last post Mon, Nov 14 2011 3:38 PM by jon.rogers. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • Mon, Nov 14 2011 3:38 PM

    • jon.rogers
    • Top 200 Contributor
    • Joined on Thu, Feb 10 2011
    • Houston, Texas
    • Posts 8

    Python to Get Exponential Curve Values/Expression

    I need to get the exponential curve values (a and b) into variable... but I cannot figure out how. I can get the Curve datatype, but don't know how to read it. I can locate the Name attribute of the a, b, or ExpressionWithValues, but cannot locate the value attribute.

    Details[2] is ExpressionWithValues
    Details[3] is a
    Details[4] is b

    There is a chart, called "Line Chart", that has a single curve (Exponential).

    import Spotfire.Dxp.Application.Visuals
    from Spotfire.Dxp.Application.Visuals import LineChart

    for vis in Application.Document.ActivePageReference.Visuals:
    -if vis.Title == "Line Chart":
    --if vis.As[LineChart]().FittingModels[0].Enabled == True:
    ---print "True"
    ---print vis.As[LineChart]().FittingModels[0].Curve.Details[2].Name
    ---print vis.As[LineChart]().FittingModels[0].Curve.Details[2]
    --else:
    ---print "False"


    Output:
    True
    ExpressionWithValues
    Spotfire.Dxp.Application.Visuals.FittingModels.CurveExpressionWithValuesReferenceItemDetail object at 0x0000000000000031 [Spotfire.Dxp.Application.Visuals.FittingModels.CurveExpressionWithValuesReferenceItemDetail]>

    Any help to get the a & b values into variables would be greatly appreciated. Thanks.
    Jonathan
    Filed under: ,
Page 1 of 1 (1 items)

Spotfire's interactive information visualization and analytic solutions give users a remarkable experience for quickly and easily querying data and reporting results for superior business intelligence. From portfolio management and customer retention programs to key processes such as CRM, marketing, research, bioinformatics, yield and asset management and design for manufacturing, enterprises around the world rely on Spotfire's business analytics software to improve operational performance.

©Copyright 2000-2011 TIBCO Software Inc | Privacy Policy | Terms of Use I Blog I Contact Us I Content Center