Ticks

The next line gives a plot with manually specified ticks on the horizontal axis.

Plot[x^2, {x, 0, 3},       Ticks {{1, 2, 3},           Automatic}] ;

Next we have a plot with manually specified ticks where some of the ticks have no label.

RowBox[{RowBox[{Plot, [, RowBox[{x^2, ,, {x, 0, 3}, ,,   ,     , RowBo ... , }}], ,, ,         , Automatic}], }}]}]}], ]}], ;}]

The next line makes a plot with manually specified ticks where some of the ticks have no label and the height of each tick is specified.  In this case one value is given for height and the tick is extended by that distance in the positive and negative directions.

RowBox[{RowBox[{Plot, [, RowBox[{x^2, ,, {x, 0, 3}, ,,   ,     , RowBo ... , }}], ,,   ,         , Automatic}], }}]}]}], ]}], ;}]

The next line uses a list (of two values) for the height of the ticks.  This specifies the height in the positive and negative directions.

RowBox[{RowBox[{Plot, [, RowBox[{x^2, ,, {x, 0, 3}, ,,   ,     , RowBo ... , }}], ,,   ,         , Automatic}], }}]}]}], ]}], ;}]

In the next line the specification a style for some ticks is given (in list braces) after the height specification.

RowBox[{RowBox[{Plot, [, RowBox[{x^2, ,, {x, 0, 3}, ,,   ,     , RowBo ... , }}], ,,   ,         , Automatic}], }}]}]}], ]}], ;}]


Created by Mathematica  (May 16, 2004)

Back to Ted’s Tricks index page