quote:
Originally posted by gydlake2013
Origin Ver. 2018b and Service Release b9.5.5.409(Select Help-->About Origin):
Operating System:win7
Hi,
I intend to use:
worksheet -p 226 contour;
layer.cmap.setLevels();
layer.cmap.inc=3;
layer.cmap.updateScale();
The "worksheet ..." can generate the contour graph properly. But the layer.cmap parts doesn't work together in one run. The layer.cmap parts can only work in separate step (first run "worksheet -p ...", then select layer.cmap parts to run).
What commands are needed between worksheet and layer.cmap?
Thank you in advance!
https://www.originlab.com/doc/LabTalk/ref/Layer-CMap-obj
The documentation says "When changing the following properties, you should call layer.cmap.SetLevels() to reset the color map, and then call layer.cmap.updateScale() to redraw the graph. Including: ..."
So you should not call setLevels(2) but before updateScale().
worksheet -p 226 contour;
// sec -pw %H;
layer.cmap.inc=3;
layer.cmap.setLevels(2);
layer.cmap.updateScale();
If the above script does not work, comment out the second line and try again.
&&&&&&&&&
&&&
&&
& _____ ___________
II__|[] | | I I |
| |_|_ I I _|
< OO----OOO OO---OO
**********************************************************