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
 How to do a matrix contour or profiles plot?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

G.Bartsch

Germany
Posts

Posted - 06/22/2006 :  08:28:03 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

greg

USA
1380 Posts

Posted - 06/22/2006 :  09:37:14 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Go to Top of Page

G.Bartsch

Germany
Posts

Posted - 06/27/2006 :  03:41:29 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
wow!
thank you for the detailed answer. i think it will help for sure.
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