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