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
 Origin Forum
 multiple contour plots on same graph
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

pounds@egl

USA
4 Posts

Posted - 06/22/2005 :  08:54:57 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5 SR5
Operating System: windows 2000

a labTalk script was written to create two contour plots on the same graph. two methods have been used both resulting in different problems.

the first method used was to create a second layer using the following commands:

window -a Graph1; // make first contour plot graph active
layer -n; // create second new layer
layer -i Matrix2; // add Matrix2 to second layer
layer -a; // rescale
layer 6 6 1.25 1; // set layer 2 dimensions to same as layer 1
layer -cm l "%F"; // load saved color map, %F set to pld file which was saved with speed mode off

this works, but i get the dreaded “speed mode is on” information as well as a distorted contour plot in layer 2. I then tried to turn the speed mode off using a system theme as described in "http://www.originlab.com/www/support/resultstech.aspx?ID=1032&language=English". Thrust me, it does work. I’ve set the speed switch off for all layers, 1st layer, 2nd layer for matrix and worksheet and save it as “system theme” and it does not fix this problem.

the second method attempted was to simple add the Matrix2 dataset to the 1st layer using these commands:

window -a Graph1; // make first contour plot graph active
layer -i Matrix2; // add Matrix2 to first layer
layer –a Matrix2; // rescale
layer -cm l "%F" Matrix2; // load saved color map, %F set to pld file which was saved with speed mode off

this also works and since the save and loaded colormap for 1st contour plot had speedmode turned off, no speed mode. However, now the colormap for the 1st contour plot is distorted even though all layer commands were issued with the Matrix2 identifier.

Mike Buess

USA
3037 Posts

Posted - 06/22/2005 :  10:18:44 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
This topic might help...

http://www.originlab.com/forum/topic.asp?TOPIC_ID=3835

Mike Buess
Origin WebRing Member
Go to Top of Page

pounds@egl

USA
4 Posts

Posted - 06/22/2005 :  2:12:06 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
in this case, i can manually turn speed mode off using the layer->Size/Speed dialog box. i tried to make system settings, but it appears that system settings are only saved for the 1st layer. The 2nd layer has the default settings. When I attempted to save a graph template with 2 layers with desired settings everything is distorted. Guessing saving a graph template with multiple layers is not supported.
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 06/22/2005 :  2:23:23 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Guessing saving a graph template with multiple layers is not supported.
Works fine for me. How do you use the template?

quote:
i tried to make system settings, but it appears that system settings are only saved for the 1st layer.
That doesn't make sense. Even so, did you try setting @LF after you add the plot to layer 2?

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 06/22/2005 2:27:52 PM
Go to Top of Page

pounds@egl

USA
4 Posts

Posted - 06/27/2005 :  09:31:22 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply

I used several combinations of the “worksheet –p 226” and “layer –i226” commands with no luck. And yes to setting system settings after plot to 2nd layer.

I did however find a solution to the original problem. After plotting the contour data on the 2nd layer I executed the origin c function “ApplySystemThemeToActivePage”. This command forces the 2nd layer to take the settings of the system theme and the speed mode is automatically turned off.

Now, I only have one last problem. I want the second contour plot to be plotted with black lines with numberic labels. I saved the colormap with those settings using “layer –cm S”. however when I load the color map using “layer –cm L”, the numeric labels are not displayed. I have to manually go into “plot details”, open “set level” menu, click “ok”, and then apply and numeric labels are displayed. I didn’t actually change anything. this is the only method I’ve found to get numeric labels to display.

Any ideas?
Go to Top of Page

easwar

USA
1965 Posts

Posted - 06/27/2005 :  5:37:43 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

You have version 7.5 so you could try using theme file instead, such as below:

1> Create the two layer graph manually as desired and customize it the way you want to
2> Save the settings in the graph to a disk theme file (see post: http://www.originlab.com/forum/topic.asp?TOPIC_ID=3843)
3> Later when you want to apply the same settings to a new graph with 2 layers into which you have already moved in the matrix, apply the saved theme using code such as:
GraphPage gpg = Project.Pages();
bool bRet = gpg.ApplyFormat("c:\\temp\\colmap.oth");

With a template you should not have to do this - the template should be saving the settings - but if this helps, then you could use this solution for now.

If the above does not help, please contact tech support directly and send them your template and some data so they could take a look.

Easwar
OriginLab

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