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
 Origin Forum
 changing contour details via labtalk

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
paulwel Posted - 10/05/1998 : 7:23:00 PM
Changing plot details of a normal 2D plot using labtalk is well described in the manual. But how can I change contour details (e.g. the show lines or the fill color tabs) via labtalk?
many thanks

Paul van der Wel

4   L A T E S T    R E P L I E S    (Newest First)
paulwel Posted - 10/08/1998 : 7:04:00 PM
Thanks! I didn't know that removing data resets the template and also, I didn't find the page -t command myself. Now it is really working elegantly

thanks again
Paul van der Wel

paulwel Posted - 10/07/1998 : 7:02:00 PM
Greg, thanks for information. But using templates is not working perfectly. When I open a graph window with the contour template and add a matrix to it, it works fine, I get the settings that I put in there myself. But when I remove the matrix and add it (either via labtalk or via the layer contents dialog box) some of the parameters are changed: the showline tab is activated and the fill color tab is deactivated although in the template it is just the other way around? How can that be?

thanks again
Paul van der Wel

greg Posted - 10/07/1998 : 3:27:00 PM
Working with a Graph Window is not the same as working with a Template. Any changes you make to a graph will be lost when you remove the dataset.

My suggestion was to use Templates. You create a Template by plotting some data, making changes to the graph to suit your needs, then saving the graph as a Template. The Template does not retain the data, but does retain information on how to display data. You could create a collection of Templates with various features:

NameShow LinesFill ColorShow Z Value
CLFN.OTPYesYesNo
CLNZ.OTPYesNoYes
CNFN.OTPNoYesNo

You could then plot a matrix with:

worksheet -p 226 CLNZ.OTP

Here is an example (for a single dataset in a single layer) that dynamically replaces a graph with a file-based Template:

%A=%C; // Remember the dataset
page -t C1101.OTP; // Replace the graph with Template
layer -i226 %A; // Restore the dataset;

[This message has been edited by Greg (edited 10-07-98).]

greg Posted - 10/06/1998 : 7:22:00 PM
The LabTalkTM capabilities of 3D graphs are not as robust as the 2D graphs. Unfortunately you can not change either of the properties you mentioned. You would need to make these options Template based. Save a Graph Template for each 'style' you wish to support and plot using the appropriate Template.


Incidently, there are several LabTalkTM features of Contour Graphs that were not documented in the manual. Here is a list of properties of the CMAP object:


LAYER.CMAP.COLOR#Map colors 1 to # of Steps (NUMCOLORS)
LAYER.CMAP.COLORABOVEColor Map Color Above
LAYER.CMAP.COLORBELOWColor Map Color Below
LAYER.CMAP.COLORHIGHColor Map High Color
LAYER.CMAP.COLORLOWColor Map Low Color
LAYER.CMAP.COLORMIDColor Map Middle Color
LAYER.CMAP.COLORMISSColor Map Missing Color
LAYER.CMAP.MODEUser-defined Z Values (1=OFF)
LAYER.CMAP.NUMCOLORSNumber of Steps / Colors
LAYER.CMAP.RAMP0 3 Color Mix
1 3 Color Linear
2 2 Color Linear
LAYER.CMAP.RAMPMODEUser defined Colors (1=OFF)
LAYER.CMAP.Z#Z Steps 1 to # of Steps
LAYER.CMAP.ZMAXTo Z Max
LAYER.CMAP.ZMINFrom Z Min
LAYER.CMAP.ZMISSINGMissing Z Value

Properties with # are enumerated:

layer.cmap.color3=237385

Colors are RGB (Red-Green-Blue) values calculated as follows:

Blue + 256 * (Greeen + 256 * Red)

where 0 <= Red|Green|Blue <= 255


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