raacampbell / shadedErrorBar

Produce elegant shaded error bars in MATLAB
GNU Lesser General Public License v3.0
174 stars 70 forks source link

Change line color from basic matlab colors #21

Closed WJRed closed 4 years ago

WJRed commented 4 years ago

Hi, great work,

is there any way to change the main line color? In all of the examples given, I see examples for the short name basic colors, i.e. 'r', 'b', 'g', etc but nothing about how to change it to custom value using RGB [x, y, z].

Thanks,

William

raacampbell commented 4 years ago

The example in the readme shows how to change properties post-hoc, and this would do what you want. You can also do shadedErrorBar(x, y, err_bar(y) ,'lineprops', {'color', [0.5, 1, 1]})

WJRed commented 4 years ago

Thanks for this,

I am using the post-hoc script but was missing the 'color'.

Regards,

William