Jump to content

Recommended Posts

Posted

Hi,

I have a scatter plot on which I would like to draw my own curve fit. The plot is semi-log, with dates along the x-axis.

I am having difficulty developing an equation that shows up on the graph. After some failed trial and error with adding aCustom Curve, my next idea was to begin by copying the equation fromthe automatic Straight Line Fit, to ensure that the equation I am using would generate a line in the general area of the plot where I want the final line, then I could manually tweak the Custom Curve equation to get the final trend I want.

Below I have included a screenshot to illustrate what I have tried: I have use the Straight Line Fit to generate the equation Log10(y) = 131.22 + 2.01E-16*X. However, when I enter this same into a Custom Curve equation, no line is drawn on my graph (Yes, I have ticked the tick box to check :)). Are there adjustments that need to be made in the Curve expression for the semi-log plot

Something else suspicious: When the Curve Draw curve I have generated is selected in the Visible Lines and Curves menu, all of the options underneath Label and Tootip... button are greyed out (Include in axis range, Update manually, One per Color, etc). This leads me to believe that Spotfire does not like the equation I have entered and it not calculating it at all, despite the fact that theStatusbox below theCurve expressionsays OK.

Can anyone advise I am at a loss for what else to try. For reference, I am using v. 7.6.0.61. Thanks!

  • 2 weeks later...
Posted

A couple things. I don't know if the custom curve draw will work with your x-axis being a date column.

May have to normalize it to number of months and then but brackets around x.

131.22 + 2 E-16 * [x]

  • 1 month later...
Posted

A hint to the problem is already visible in the function plotted in the graph, namely it is assuming a logarithmic function now log(y)=F(x)

 

Try putting in following function:

 

log10(131.22 + 2.01E-16*X)

 

 

  • 1 year later...

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...