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
 Variables as range of Contourplot layer.cmap.zmin
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

itelly

3 Posts

Posted - 02/19/2018 :  05:00:28 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,

I have a question that seems to be silly but I am new to labtalk:

I have a FORTRAN-Routine which starts Origin and controls it via Labtalk. In my FORTRAN-Routine I set 2 variables MINVAL , MAXVAL and want to use them as the range of my Contourplot. I want to do that by
changing the layer.cmap.zmin and layer.cmap.zmax using my 2 variables MINVAL , MAXVAL. How can I do that?

If I set a fixed value everything is OK :
layer.cmap.zmin=3
layer.cmap.zmin=10

But how do I set it with a variable? I tried that
In Fortran:
MINVAL = 1
MAXVAL = 7
...
The code for the corresponding Labtalk ( inside the wrapped part) is
layer.cmap.zmin=MINVAL
layer.cmap.zmin=MAXVAL

but the 2 variables would not be used.

Does Anybody have an Idea about how to use variables?
Thank you

Hideo Fujii

USA
1582 Posts

Posted - 02/19/2018 :  11:10:25 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi itelly

The second line should be:
layer.cmap.zmax=MAXVAL;
Also, the following document says in Note that you need to call the methods,
layer.cmap.SetLevels() and layer.cmap.updateScale(). Have you tried them?
https://www.originlab.com/doc/LabTalk/ref/Layer-CMap-obj

--Hideo Fujii
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