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
 Variables as range of Contourplot layer.cmap.zmin

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
itelly Posted - 02/19/2018 : 05:00:28 AM
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
1   L A T E S T    R E P L I E S    (Newest First)
Hideo Fujii Posted - 02/19/2018 : 11:10:25 AM
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

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