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
 Origin Forum
 Default values of Layer Area

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
carsten Posted - 06/29/2004 : 03:33:01 AM
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
8   L A T E S T    R E P L I E S    (Newest First)
Mike Posted - 07/02/2004 : 08:56:39 AM
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
carsten Posted - 07/02/2004 : 02:45:29 AM
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
Barb Tobias Posted - 07/01/2004 : 3:29:03 PM
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

carsten Posted - 07/01/2004 : 03:03:14 AM
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
Mike Posted - 06/30/2004 : 11:46:53 AM
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
Mike Buess Posted - 06/30/2004 : 10:54:18 AM
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
carsten Posted - 06/30/2004 : 07:56:04 AM
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
Mike Posted - 06/29/2004 : 10:06:10 AM
Carsten, Layer Area dimensions are a property of the graph template. Edit your default values and resave the graph template.

Mike
OriginLab

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