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
 Default values of Layer Area
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

carsten

Switzerland
78 Posts

Posted - 06/29/2004 :  03:33:01 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
How and where can I change or set the default values (ini file?) of the layer area values (see tab Size/Speed; layer properties)

Carsten

Mike

USA
357 Posts

Posted - 06/29/2004 :  10:06:10 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Carsten, Layer Area dimensions are a property of the graph template. Edit your default values and resave the graph template.

Mike
OriginLab
Go to Top of Page

carsten

Switzerland
78 Posts

Posted - 06/30/2004 :  07:56:04 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Mike, thank you for your reply.
But it does'nt work. Perhabs my question was'nt clear at all.
The problem is: whenever I add a new layer (Edit->New Layer(Axis)-> Normal...) the layer area values (within 'Plot Details' tab: Size/Speed) of the new layer differs from that what I want. Saving the graph template (i.e. Line) with new area values and a subsequent adding of a new layer results again in the old layer area values.
Maybe I saved the wrong template. But what is the right one?

Carsten
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 06/30/2004 :  10:54:18 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Saving a template only saves the properties of existing layers. You can use a script to copy those properties to new layers. The example below copies the Speed Mode settings from layer 1 to a new layer...

lay -n; // create new layer (Edit->New Layer->Normal)
layer$(page.nlayers).maxpts=layer1.maxpts;

Where layerN.maxpts=Maximum # pts shown (0 turns speed mode off). Most other layer properties are also controlled by the layer object.

Mike Buess
Origin WebRing Member
Go to Top of Page

Mike

USA
357 Posts

Posted - 06/30/2004 :  11:46:53 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Carsten,

Sorry, I suspected that there was more to your question. As Mike Buess suggested, you may want to do this via script. I don't know whether this will help or not, but I got one of the Applications programmers to give me a hand with creating this short script that overlays a new, linked layer on layer 1 (gauging from what you had said in your previous post about what you were trying to do):

quote:
//get x and y to and from vals for layer 1
xf=layer1.x.from;
xt=layer1.x.to;
yf=layer1.y.from;
yt=layer1.y.to;

//add a layer, link to layer1, set % of linked layer
layer -x;
layer -n;
layer.link=1;
layer.x.link=1;
layer.y.link=1;
layer v1 v2 v3 v4;
layer -u 7;

//sync new layer axis scale values with layer 1
layer.x.from=$(xf);
layer.x.to=$(xt);
layer.y.from=$(yf);
layer.y.to=$(yt);


You may not want all of this; discard or comment out what isn't useful. As an aside, you could put this script into a button object (create the text object and paste your script to the Label Control dialog box) and save the whole works as a template.

Mike
OriginLab


Edited by - Mike on 06/30/2004 11:56:30 AM
Go to Top of Page

carsten

Switzerland
78 Posts

Posted - 07/01/2004 :  03:03:14 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank's for the replies.
After Mike's (#1) answer it becomes clear that I have to write my own small script. But getting Mike's (#2) comments I only need to insert these few lines.

I really appreciate it.

Carsten
Go to Top of Page

Barb Tobias

USA
305 Posts

Posted - 07/01/2004 :  3:29:03 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Carsten,
Also, just wanted to let you know that we have a similar request in our development database, so I have added your information to this record.
QA 3178 - Provide option to add new layers using format of existing or specified template
We're considering implementing this in the next version.
-Barb

Go to Top of Page

carsten

Switzerland
78 Posts

Posted - 07/02/2004 :  02:45:29 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Barb,
nice to hear from you!
Regarding the new layer issues I was looking for a Laptalk access to Plot Details/Legend sub-commands: 'Include Data Plots from All Layers' and 'Auto Update'. But I could not find any hint.
Is it possible to set these parameters using Laptalk?

Carsten
Go to Top of Page

Mike

USA
357 Posts

Posted - 07/02/2004 :  08:56:39 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Carsten, I think the Auto Update and Include Data Plots from All Layers settings are best saved with your graph template. If you still need to update the legend after adding data to a layer, use legend -s.

Mike
OriginLab

Edited by - Mike on 07/02/2004 08:59:19 AM
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