The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 How to use "layer.cmap" after "worksheet -p"

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
gydlake2013 Posted - 01/22/2019 : 08:43:27 AM
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!
3   L A T E S T    R E P L I E S    (Newest First)
gydlake2013 Posted - 01/23/2019 : 02:19:44 AM
Thanks to Castiel and Yuki Wu for the help!
Castiel's solution works well ("sec -pw %H" is not needed.).
It cannot work by only adding "sec -p 1" between worksheet and layer.cmap.
Castiel Posted - 01/22/2019 : 9:58:37 PM
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
**********************************************************
yuki_wu Posted - 01/22/2019 : 9:55:42 PM
Hi,

Please try to insert this line between “worksheet -p” command and “layer.cmap” command:

sec -p 1;

Regards,
Yuki

OriginLab

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000