sddsplot help

Moderators: cyao, michael_borland

Post Reply
tennant
Posts: 85
Joined: 31 Jul 2008, 07:19
Location: Jefferson Laboratory

sddsplot help

Post by tennant » 15 Apr 2013, 13:27

Hi,

Still struggling to learn the intricacies of sddsplot... I have data (index, avg, min, max) where I'd like to generate a plot of index vs avg with error bars that extend down to min and up to max for each point (see attached file).

Any help is greatly appreciated.
Thanks,
chris
Attachments
test.sdds
(2.01 KiB) Downloaded 132 times

michael_borland
Posts: 1933
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: sddsplot help

Post by michael_borland » 15 Apr 2013, 13:39

Chris,

sddsplot only understands symmetric error bars. For those, you'd do something like

Code: Select all

sddsplot -column=index,ave,sigma -graph=error test.sdds
In your case, if min and max are not symmetric about ave, you'll need to do some pre-processsing

Code: Select all

sddsprocess test.sdds -define=col,ave1,"min max + 2 /" -define=col,sigma,"max min - 2 /"
sddsplot -column=index,ave -graph=sym test.sdds -column=index,ave1,sigma -graph=error test.sdds
--Michael

Post Reply