Menu

Hoe to make linear function cover whole plotting range?

Help
2016-04-23
2016-04-24
  • Nicolai Grund

    Nicolai Grund - 2016-04-23

    Hey guys,
    I've discovered some nasty issue.
    When I fit a linear function to a set of measurement values and then plot both, f(x) is only displayed along the range that is aswell covered by the measurement values. Though, I would like to have the linear function plotted over the whole range I've defined.
    Does anyone know how to fix this?

    Best regards
    Nico

     
    • Clark Gaylord

      Clark Gaylord - 2016-04-23

      Is it feasible to add the line directly:

      plot [l:u] "data", a+b*x title "fit"
      On Apr 23, 2016 10:56, "Nicolai Grund" niggo9393@users.sf.net wrote:

      Hey guys,
      I've discovered some nasty issue.
      When I fit a linear function to a set of measurement values and then plot
      both, f(x) is only displayed along the range that is aswell covered by the
      measurement values. Though, I would like to have the linear function
      plotted over the whole range I've defined.
      Does anyone know how to fix this?

      Best regards
      Nico


      Hoe to make linear function cover whole plotting range?
      https://sourceforge.net/p/gnuplot/discussion/5925/thread/0e8ed76e/?limit=25#183d


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/gnuplot/discussion/5925/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       
    • Hans-Bernhard Broeker

      You forgot to tell how you defined that range you want the function plotted in. Note that if you never told gnuplot about that range, there's just no way it can respect it.

       

Log in to post a comment.