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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Cmap for different plots in the same layer (3D)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Fry

Germany
5 Posts

Posted - 03/21/2017 :  09:05:13 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

yuki_wu

896 Posts

Posted - 03/22/2017 :  01:41:16 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000