[Scilab-users] Bar diagramm with error bars

classic Classic list List threaded Threaded
2 messages Options
Katharina Wagner Katharina Wagner
Reply | Threaded
Open this post in threaded view
|

[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

 

 

Katharina Wagner 
Junior Researcher


T  +43 (3322) 42606-165   
[hidden email] 

BIOENERGY 2020+ GmbH 
Location Güssing
| Wienerstraße 49, A 7540 Güssing 
Head Office Graz | Inffeldgasse 21b, A 8010 Graz |
www.bioenergy2020.eu 
FN 232244k, District Court Graz, VAT-No.
ATU 56877044

Vertraulichkeitshinweis:
Diese Nachricht und allfällige angehängte Dokumente sind vertraulich und nur für den/die Adressaten bestimmt. Sollten Sie nicht der beabsichtigte Adressat sein, ist jede Offenlegung, Weiterleitung oder sonstige Verwendung dieser Information nicht gestattet. In diesem Fall bitten wir, den Absender zu verständigen und die Information zu vernichten. Für Übermittlungsfehler oder sonstige Irrtümer bei Übermittlung besteht keine Haftung.
Confidentiality Note:
This message and any attached files are confidential and intended solely for the addressee(s). Any publication, transmission or other use of the information by a person or entity other than the intended addressee is prohibited. If you receive this in error please contact the sender and delete the material. The sender does not accept liability for any errors or omissions as a result of the transmission.

 


_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Rafael Guerra Rafael Guerra
Reply | Threaded
Open this post in threaded view
|

Re: Bar diagramm with error bars

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:[hidden email]] On Behalf Of Katharina Wagner
Sent: Wednesday, August 16, 2017 9:22 AM
To: [hidden email]
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



 


_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users