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
 Where are my ticks???????????????????
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

gavin.read

UK
15 Posts

Posted - 01/07/2003 :  11:32:49 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi peeps,

I am plotting graphs with LabTalk, and most of it is OK. However I am having trouble getting the graph to display the ticks.

Here is my code;

//lay dataset in plot etc.
%H!layer1.X.opposite = 1; //Add top X axis
%H!layer1.Y.opposite = 1; //Add right Y axis
%H!layer1.X.majorticks = 0; //Default number of major ticks
%H!.layer1.Y.minorticks = 0; //Default number of minor ticks
%H!layer1.X.ticks = 5; //Major and minor ticks in
// No ticks showing yet!!!!!!
//refresh window just in case!
doc -uw; clr;
//Still no ticks.

Do I need to explicitly show the ticks, if so, how?

Thanks in advance for help :-))

cpyang

USA
1406 Posts

Posted - 01/07/2003 :  1:54:26 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
If you just open an empty graph window, do you see ticks?

CP


Go to Top of Page

Laurie

USA
404 Posts

Posted - 01/07/2003 :  3:48:07 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Layer.x.opposite displays a line opposite the axis; it does not display the top X axis. To prove this to yourself, after you execute the command double-click on the line, the Axis dialog opens but if you look on the Title & Format tab of the dialog and make the Top selection active, you'll notice that the 'Show Axis & Ticks' check box is not checked.

You need to use:

layer.x.showAxes=3;
layer.x.showLabels=3;

OriginLab Technical Support
Go to Top of Page

gavin.read

UK
15 Posts

Posted - 01/08/2003 :  10:01:51 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Lovely,

Thanks Laurie.

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