KNOWLEDGEBASE - ARTICLE #1532

The syntax of the SetAxisLimit script command.

The SetAxisLimits command lets you change, via script, the range or interval of an axis. Each use of the command only lets you change one of those values. This lets you only change the top limit, for example. Here is the syntax:

SetAxisLimits [X, Y, Y2] <Segment #> [Top #, Bottom #, Interval #]


If you want to change the Y axis (left Y) so it ranges from 100 to 200 with an interval of 10, you need to use three script commands (in any order): 

SetAxisLimits Y top 200
SetAxisLimits Y bottom 100
SetAxisLimits Y interval 10

If the Y axis was split into two segments, you need to specify which segment to change. If you wanted to change the bottom  segment, use these commands. Note that it is not enough to specify the segment number; you also need to include the word 'segment'.

SetAxisLimits Y segment 0 top 200
SetAxisLimits Y segment 0 bottom 100
SetAxisLimits Y segment 0 interval 10

Note that the first segment is '0', and the second segment is '1'.

Explore the Knowledgebase

Analyze, graph and present your scientific work easily with GraphPad Prism. No coding required.