Jump to content

defining line characteristics in fitted curves


Recommended Posts

I would like to be able to set up logistic regression curve fit for a scatter plot and then select options: one line for each color and shape. And then I want to turn off display (of the fit line)  for one specific shape. Is that possible in Ironpython?

Link to comment
Share on other sites

  • 2 weeks later...

I am looking at the logistic regression class help page

https://docs.tibco.com/pub/doc_remote/spotfire/7.9.0/TIB_sfire-analyst_7.9.0_api/html/T_Spotfire_Dxp_Application_Visuals_FittingModels_LogisticRegressionFittingModel.htm

unfortunately this fitting model does not seem to have options to change line style, color etc let alone find a way to turn off a specific shape or color

Link to comment
Share on other sites

Hi Sundaram,

I see. As you have multiple cross shapes in the second curve, and you have a line per shape, you'll get the two lines.
The upper curve only has one cross shape, hence no line is being drawn.

And disabling the line per shape, alters the complete line. I'm assuming that is not what you want either.
I'll ask my colleagues if there is a way around this.

Kind regards,

David

Link to comment
Share on other sites

Hi Sundaram,

We think there are a couple of workarounds possible.
The first one is not to use the Excluded data. That would give you the Included data and it's curve.

But if you want/need the Excluded data as well, you can color code it in white, so it doesn't show in the plot:
image.thumb.png.62cb671d4a1c52b2cdd69eb0965846df.png

You can even get rid of the cross shapes, if you select the white cross shape in the 'Shape' section:
image.png.ce382c3af2462aa1aea5d53b942caa83.png

Kind regards,

David

Link to comment
Share on other sites

Posted (edited)

thanks - I thought about using white color - but I need to show the excluded points without showing the line through them. The only way I have been able to do so far is to have two different scatter plots, one like this and a duplicate copy where I draw a reference curve based on the calculated parameters for just the included points - but this slows down rendering/parameters export (to table) etc for very large data sets

Edited by Sundaram Sridharan
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...