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(5#5labelcol6#6) 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 5#5labelcol6#6 is added to the list of xtic labels at the same X coordinate as the point it belongs to. xticlabels(5#5labelcol6#6) may be shortened to xtic(5#5labelcol6#6).

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.


Ethan Merritt 2007-03-03