arthur Boender Posted April 22, 2020 Share Posted April 22, 2020 Hi, I have a issue with Spotfire crashing. Following script to set the ranges of the Y axis of the scatterplot is working, but when you try to view the propertie of the Y axisof the Scatterplot after execution Spotfire crashes. Step 1 run following script from Spotfire.Dxp.Application.Visuals import ScatterPlot, IndividualScalingMode, AxisRange valueInput = Document.Properties["INPUTDROPDOWN"] vc = vis.As[scatterPlot]() if(valueInput == 'ON'): vc.YAxis.Range = AxisRange('null', 10); else: vc.YAxis.Range = AxisRange('null', 100); Step 2 Open scatterplot and view the Y Axis Result Spotfire crashes Regards Arthur Link to comment Share on other sites More sharing options...
Shashank Gurnalkar Posted April 22, 2020 Share Posted April 22, 2020 Instead of using 'null', use None in the code as shown below. vc.YAxis.Range = AxisRange(None, 10)Do the same for the ELSEpart as well. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now