DataGraph Community
  • Articles
  • Forums
  • News
  • Home

Community Forums

Forums/Technical Support/Getting Started/Error bars

Error bars

error bars
  • 2 years, 7 months ago jmallen
    Participant

    I want to put error bars on points in a scatter graph, with bar length +/- 10% of the value of each point.

    How is this done?

    2 years, 7 months ago grumpychemist
    Participant

    Hello hello,

    this is very easy though DataGraph handles doesn’t give you the direct option to set error bars to +/- a percent. Instead it lets you set the error bars to a value of a column so what you need to do is create a column with your desired error values. You can use a function to make it 10% of the y value.

    So have a look below, I have put some arbitrary x and y data into columns and then I have created a function column (the f(x) button) and typed in the formula 0.1*y_data. This creates a column which contains our 10% errors.

    Now in the plot, I have gone to my points command and pressed the expansion triangle to open up all the options. At the bottom are the error bar options. Ive added small error bars and changed the error in y to the new column I created using the error function. By default it plots both the positive and negative error.

     

    hope this helps.

    Screenshot 2020-06-17 at 12.02.09

    2 years, 7 months ago grumpychemist
    Participant

    Hello hello,

    this is very easy though DataGraph handles doesn’t give you the direct option to set error bars to +/- a percent. Instead it lets you set the error bars to a value of a column so what you need to do is create a column with your desired error values. You can use a function to make it 10% of the y value.

    So have a look below, I have put some arbitrary x and y data into columns and then I have created a function column (the f(x) button) and typed in the formula 0.1*y_data. This creates a column which contains our 10% errors.

    Now in the plot, I have gone to my points command and pressed the expansion triangle to open up all the options. At the bottom are the error bar options. Ive added small error bars and changed the error in y to the new column I created using the error function. By default it plots both the positive and negative error.

     

    hope this helps.

    Screenshot 2020-06-17 at 12.02.09

    2 years, 7 months ago jmallen
    Participant

    Thanks.

    Works for points (scatter) plots.

    But not for Plot/Plots which are essentially scatter plots with the points joined by straight lines in sequence.

    So I have a Points plot and want to add Y error bars. How to do it?

    2 years, 7 months ago dgteam
    Moderator

    The Plot command has the same mechanism as the Points command.

    By default, there are no error bars. That is set a the bottom the command.

    ErrorBars-1

    When you select a type of error bar, the options expand so you can select the columns you want.

    ErrorBars-2

    Here is an example with the Ellipsoid option.

    Ellipsoid

    The Plots command does not have error bar options.    If you prefer the Plots command for drawing lines, you can combine that with a Points command to draw the error bars.

     

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

How to join the community

  • Create your account
  • Edit your Profile
  • Insert images into the forum
  • Forum Notifications
Log In

Search Forums

Recent Topics

  • Multiple mask criteria on columns (or equivalent) by richard brown
    18 hours, 49 minutes ago
  • Panning tool by mr j shawash
    1 day, 15 hours ago
  • Rotating Command Labels by matheus esteves
    2 weeks ago
  • turn off autosave? by _leemiller
    2 weeks, 2 days ago
  • Problem with decimal separator on MacOS in France by ckress
    5 days, 20 hours ago

Our Software

  • DataGraph
  • DataTank
  • ImageTank – New!
  • Create your account
Log In
© Visual Data Tools, Inc.  •  Privacy