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
 Adding Contour Plots to Existing Layer

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
Mulvenna Posted - 12/12/2013 : 05:01:51 AM
Origin Ver. 8.6
Operating System: Windows 7

Hi,

I'm working on a project that compares multiple plots. Currently the script "merges" the relevant graphs and this works perfectly.

The only problem is, when there are a large number of graphs, I end up with 30+ layers per graph which is not ideal. I am in the middle of changing the script to copy the datasets to the relevant layers using the "Layer -i" command.

The only problem I have is when it comes to copying contour plots, this method does not work. Is there a way to show multiple contour plots on one layer??

Incase I haven't explained what I'm doing properly, heres a sample of the script:


For (i=2; i<=$(count); i++) // Loop over the number of graphs to be compared
{
graph$=[mergebook]Graphs$(i)!wcol(col)[2]$; // Find the relevant graph name
graph.TrimLeft("embedding:"); // Remove the text "embedding:"
Win -a %(Graph$); // Open the graph
Range r$(i)1=1!1; // Get the dataset name of the 1st plot
Range r$(i)2=2!1; // Get the dataset name of the 2nd plot
Range r$(i)3=2!2; // Get the dataset name of the 3rd plot
Range r$(i)4=2!3; // Get the dataset name of the 4th plot
Range r$(i)5=2!4; // Get the dataset name of the 5th plot

Win -a %(Graph1$); // Activate the comparison graph
Page.Active$=1; // Activate the 1st layer
Layer -i r$(i)1; // Add the 1st dataset
Page.Active$=2; // Activate the 2nd layer
Layer -i r$(i)2; // Add the 2nd dataset
Layer -i r$(i)3; // Add the 3rd dataset
Layer -i r$(i)4; // Add the 4th dataset
Layer -i r$(i)5; // Add the 5th dataset
}



The 5th dataset on this particual graph is the contour plot. It does not seem to work using this method. Any suggestions would be much appreciated.

Many Thanks,
Mulvenna
1   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 12/18/2013 : 1:45:46 PM
Cannot tell without a project in hand. In general, something like this should work, but maybe you should make the contour it's own unique layer in both source and target.

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