Message Boards Message Boards

0
|
3047 Views
|
1 Reply
|
1 Total Likes
View groups...
Share
Share this post:

Add errorbars to a ListLogLogPlot?

Posted 5 years ago

Hey, I have created a Plot and a Fit and combined them into one loged (both axis) Plot. Now I have to add the Errorbars but I don't know how and I can't find any solution online.

thanks!

POSTED BY: Pouria Samieadel

assume your function is x^2 and the errors are given at positions 1, 2, 4 and 6. Try

f[x_] := x^2
errors = {{1, 5.1}, {2, 6.3}, {4, 3.}, {6, 8.3}};
bars = {{#[[1]], f[#[[1]]] - #[[2]]}, {#[[1]], f[#[[1]]] + #[[2]]}} & /@ errors
Plot[f[x], {x, 0, 7}, Epilog -> Line /@ bars]
POSTED BY: Hans Dolhaine
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract