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
 Adding Contour Plots to Existing Layer
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Mulvenna

Germany
46 Posts

Posted - 12/12/2013 :  05:01:51 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

greg

USA
1379 Posts

Posted - 12/18/2013 :  1:45:46 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.
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