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
 How to add top and right 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

daliss

France
Posts

Posted - 04/25/2006 :  04:57:56 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): OriginPro7.5
Operating System:WinXP

Hi,

I wrote a script to add top and right layer into current graph with no tick label:

layer -n Both;
layer.X2.ticks=0;
layer.Y2.ticks=0;
layer.X2.showlabels=0;
layer.Y2.showlabels=0;

But the result is wrong, there is no top and right layer adding to it. Only some additional ticks appeared in left Y axis (as shown in Figure 1). If I firstly execute a part of this script (from line 1 to line 3), then execute the remainder part (from line 4 to line 5). That is ok.

I don't know why it can't be execute one-step?

Thanks in advance.

William Peng

Mike Buess

USA
3037 Posts

Posted - 04/25/2006 :  4:58:05 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi William,

Insert a short delay after the layer -n command...

layer -n Both;
sec -p 0.1; // wait 0.1 seconds
layer.X2.ticks=0;
layer.Y2.ticks=0;
layer.X2.showlabels=0;
layer.Y2.showlabels=0;

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 04/25/2006 4:58:26 PM
Go to Top of Page

daliss

France
Posts

Posted - 04/25/2006 :  10:10:59 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks a lot, Mike.
Go to Top of Page

verrallr@a

Canada
44 Posts

Posted - 04/27/2006 :  11:42:15 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
There is a Theme in Theme Gallery that automatically puts upper and right axes in, with no ticks. It is called "Opposite Lines". You can access it by using Format - Theme Gallery.

If you put it as your "System Theme", then the graphs you create (henceforth) will all have these extra axes in place.
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