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
 Cmap for different plots in the same layer (3D)

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
Fry Posted - 03/21/2017 : 09:05:13 AM
Origin Ver. and Service Release (Select Help-->About Origin): 2015G (64-Bit) Sr2 b9.2.272
Operating System: Windows 7 Professional SP1

Hello everyone,

i want change the colormap of my 3d surface plots by a LabTalk script. My layer contains 4 plots. The script looks like this (just a part of the code). The layer is activ when the code runs!

...
layer.plot2.cmap.zmin= 305;
layer.plot2.cmap.zmax= 314; 
layer.plot2.cmap.type= 1;
layer.plot2.cmap.numMajorLevels= 10;
layer.plot2.cmap.numMinorLevels= 9;
sec -p 1;
layer.cmap.setLevels();
sec -p 1;
layer.cmap.updateScale();
...

I also try'd the following:

layer.plot2.cmap.setLevels();
layer.plot2.cmap.updateScale();

Even if i just have one plot activ, it dosn't work.
layer -hp 1 1; 
layer -hp 0 2; 
layer -hp 1 3;
layer -hp 1 4;
layer -a;



What i desire is:




What i still get:




Origin update the values but not the cmap for plot2...4.



Any suggestions?

Best Regards
Rene
1   L A T E S T    R E P L I E S    (Newest First)
yuki_wu Posted - 03/22/2017 : 01:41:16 AM
Hi Rene,

You should active plot 2 in the layer at first:

layer.plot = 2;

And then change the properties for colormap:

layer.cmap.zmax = 10;
layer.cmap.SetLevels();
layer.cmap.updateScale();

Hope it helps.

Regards,
Yuki
OriginLab

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