Error bars in a different scale

Hi,
I would like to add an additional scale for my errorbars, as their value is much smaller than my values in the y-axis. As well, is it possible to add a legend only for the errorbars? Thank you very much in advance.

 Accepted Answer

It will look rather confusing if the scale of the error bars differ from the values. But you can simply multiply the values of the errors by a factor.
Do you mean:
e = errorbar(x,y,err)
legend(e, 'Error bar')
?

1 Comment

Auryn_
Auryn_ on 8 Feb 2017
Edited: Auryn_ on 30 May 2018
Thank you! It works now.

Sign in to comment.

More Answers (0)

Asked:

on 8 Feb 2017

Edited:

on 30 May 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!