next up previous contents index
Next: X2ticlabels Up: Using Previous: Using title   Contents   Index


Xticlabels

If gnuplot is built with configuration option -enable-datastrings, then a column of the input data file can be used to label axis tic marks. The format of such a plot command is


 plot 'datafile' using <xcol>:<ycol>:xticlabels(<labelcol>) with <plotstyle>

Tic labels may be read for any of the plot axes: x x2 y y2 z. The ticlabels($<$labelcol$>$) specifiers must come after all of the data coordinate specifiers in the using portion of the command. For each data point which has a valid set of X,Y[,Z] coordinates, the text field found in column $<$labelcol$>$ is added to the list of xtic labels at the same X coordinate as the point it belongs to. xticlabels($<$labelcol$>$) may be shortened to xtic($<$labelcol$>$).

Example:


     splot "data" using 2:4:6:xtic(1):ytic(3):ztic(6)

In this example the x and y axis tic labels are taken from different columns than the x and y coordinate values. The z axis tics, however, are generated from the z coordinate of the corresponding point.


Autobuild 2008-12-03