
Dear friends, when I need to draw the horizontal diagram vertically as required, that is, I needed to swap the XYaxes, the figure fit the trouble. The basic diagram is as follows:
When I transform the XY axis and replot, no matter what I do the fit results are not correct and I have tried converting the formula and still can’t get the appropriate results.
I’m not sure whether I have an error or other aspects, hope to get answers. I wonder if I could add the option to rotate the drawing so that I could rotate the horizontal drawing, or even add rotation to the “For Composition” option that would be a great decision.
Thank you very much.
As you are finding, the Fit command only fits y as a function of x. In other words, you are minimizing the error as with respect to y. If you switch the x and y input data in the Fit command, you are minimizing the error in terms of a different set of data, which is why the result is not the same.
The solution is to use the Fit command just as you are to preform the fitting, but exclude this from being drawn. Extract the Fit results out to the data table. Then plot the fit results with your Depth as the y.
Here is an example.
To extract the fit results, use the gear menu as shown in this article.
https://community.visualdatatools.com/datagraph/knowledgebase/commandfit/#extractingresults
In your case, you would Extract as column > Fit.
Hope that helps!
You must be logged in to reply to this topic.