Mulvenna
Germany
46 Posts |
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 |
|