How to fit the curve after exchanging XY-axis?

DataGraph Forums Technical Support Support Desk How to fit the curve after exchanging XY-axis?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9650
    ttoday
    Participant

      Dear friends, when I need to draw the horizontal diagram vertically as required, that is, I needed to swap the XY-axes, the figure fit the trouble. The basic diagram is as follows:

      1

      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.

      2

      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.

      #9651
      dgteam
      Moderator

        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.

        FitXorY

        To extract the fit results, use the gear menu as shown in this article.

        https://community.visualdatatools.com/datagraph/knowledge-base/command-fit/#extracting-results

        In your case, you would Extract as column > Fit.

        Hope that helps!

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.

      DataGraph Forums Technical Support Support Desk How to fit the curve after exchanging XY-axis?