The Origin Forum
File Exchange
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Plotstack / Contour Plot

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List

* Forum Code is ON
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
sebbey Posted - 06/01/2012 : 10:41:16 AM
Origin Ver.: 8.6.0G
Operating System: Windows 7 Professional

Hi Guys,

I'm currently trying to use the plotstack function to draw a contour plot and a simple line+symbol plot.

This is the code I use:
plotstack iy:=((47,49),(47,48,49)) plottype:=custom custom:="202 226" order:=0 legend:=0 unit:=3 gapy:=3 leftmg:=0 rightmg:=0 topmg:=0 bottommg:=0;

The Graph on top should be a symbol+line plot with col(47) beeing the x-axis and column(49) beeing the y-axis.
Underneath this Graph I want to draw a contour plot with col(47)=x, col(48)=y, col(49)=z.

Drawing the line+symbol plot works perfectly fine but I am not able to draw the contour plot.

Can somebody help me to solve this problem?

Thanks in advance!
2   L A T E S T    R E P L I E S    (Newest First)
sebbey Posted - 06/04/2012 : 02:51:25 AM
Hi Kathy,

thank you very much. Your workaround does the job as well!

Kathy_Wang Posted - 06/03/2012 : 11:11:11 PM
Hi Sebbey,
The stack template doesn't support including contour plot, unfortunately. Besides, the plot type 226 requires input data to be a matrix object, not XYZ range.
However there is a workaround to generate a graph according to your need, that you first generate the line-symbol plot, then generate the contour plot, and merge these two graph windows together and arrange it as what you want.
To generate contour plot from XYZ dataset, you need to first highlight your Z column and use the code:
worksheet -p 243 TriContour;

As the TriContour template is used to plot color filled contour from XYZ dataset.
Note that if you want to select Z column with labtalk code, you may use:

Where 49 is your Z column index according to your script, 1 means you select the column. If you want to deselect, use 0 here instead.
To merge two graph windows, you may use the
x-function, for more details please refer to


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