T O P I C R E V I E W |
tom3m |
Posted - 02/27/2002 : 3:08:26 PM I have a script that creates a plot of some data including averages (Y values) and standard deviations (Y error bars) versus a parameter. I use the command
wks.col$(mm).type=3;
to set column number mm to be of type Y error to get the error bars (the data columns are organized as |X|Y|Yerr|X|Y|Yerr...|X|Y|Yerr|). I would like to write a simple script to toggle the error bars on and off. I can do this manually for each error bar in the layer by using the error bar control tab from "plot details" by unchecking the plus and minus direction checkboxes, but I cannot find a labtalk command to do this. "Set" seems to only be for setting a certain column to be error bars for a given data set.
I suppose one way would be to make a dummy column full of zeros and then use "Set" to assign it to be the error bars instead of the column that I initially used. It seems like a major contortion for something as simple as toggling error bars on/off.
I tried searching the manual and the Origin forums but could not find anything.
Please help!
Thanks! |
3 L A T E S T R E P L I E S (Newest First) |
tom3m |
Posted - 03/01/2002 : 11:54:00 AM I should note that I found it is required that the layer in which the error bars appear be the active layer when you issue the command to unset them. This might be obvious to the veterans but it was not obvious to me. I now have a nice little script running. |
tom3m |
Posted - 02/27/2002 : 4:26:27 PM It does work! Thank you very much. It is one of those put 2+2 together things, I guess. I didn't really think of the error bar columns as a "data set", but Origin does think of it that way. |
Mike Buess |
Posted - 02/27/2002 : 3:41:46 PM Have you tried hiding them with Set?
set dataset -s 0;
I don't know if that works for error bars, but it's worth trying.
Mike Buess Origin WebRing Member |