[Scilab-users] Bar diagramm with error bars

Rafael Guerra jrafaelbguerra at hotmail.com
Wed Aug 16 12:30:40 CEST 2017


Hi,

// START OF CODE
x=[2, 4, 8];
y=[0.2 0.12 0.06; 0.17 0.22 0.05; 0.19 0.20 0.07];
dev=[0.08 0.08 0.03; 0.03 0.05 0.02; 0.04 0.06 0.02];

clf;
bar(x, y+dev,'w-')
bar(x, y)
bar(x, y-dev)
//END OF CODE

Would this be good enough?

Rgds,
Rafael

From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Katharina Wagner
Sent: Wednesday, August 16, 2017 9:22 AM
To: users at lists.scilab.org
Subject: [Scilab-users] Bar diagramm with error bars

Hi everyone,

I am trying to find a way to include error bars on a bar diagram. Sadly, I could only find error bars for normal 2d plots.

//START OF CODE
close();

x=[2, 4,  8];

y=[0.2 0.12 0.06; 0.17 0.22 0.05; 0.19 0.20 0.07];

dev=[0.08 0.08 0.03; 0.03 0.05 0.02; 0.04 0.06 0.02];
// End of code

A really sloppy way I tried to fix it with:

//START OF CODE

bar(x, (y+dev),'w--')

bar(x, y)

//END OF CODE



But that doesn't show me the lower boundary. (And it doesn't look good)



Thank you in advance,

Katharina



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20170816/e5946730/attachment.htm>


More information about the users mailing list