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?
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.