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
 How to do a matrix contour or profiles plot?

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
G.Bartsch Posted - 06/22/2006 : 08:28:03 AM
I would like to convert a worksheet to a matrix (i think mat object should be fine for that) and then plot it as one of those contour plots (or even profiles). Unfortunately i dont find a way to acces these plotting options by labtalk. Saving as a template and recalling that didnt work. Does anyone know how to do such things?
thank you for your efforts
2   L A T E S T    R E P L I E S    (Newest First)
G.Bartsch Posted - 06/27/2006 : 03:41:29 AM
wow!
thank you for the detailed answer. i think it will help for sure.
greg Posted - 06/22/2006 : 09:37:14 AM
A tip that's been mentioned in the Forum many times :
Open the Script Window
Hold down the Shift and Ctrl key while selecting a menu option
(Plot : Contour Plot : Contour - Color Fill for example)
and if a script executes that option, then it types to the Script Window ( along with a menu ID ) rather than executing, and Code Builder may open to any file-based code.

If I do that for Profiles/Contour, I see that Origin runs :
run.section(Plot3D,ContourColor)

You can just execute that line to plot your matrix.

Looking in Code Builder, I see in that section the command to plot is :
worksheet -p 226 contour

I could customize a contour plot and save as a special template - MyContour.OTP - and plot it thusly :

worksheet -p 226 MyContour

There is also a generic mechanism of loading a template then filling the template as shown here :

%M = %H; // remember matrix window name (same as matrix data name)
win -t plot MyContour; // Load a graph template
layer -i %M; // Include a dataset in the layer
layer -a; // rescale


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