

Copyright 1986 - 1993, 1998, 2004 Thomas Williams, Colin Kelley Distributed under the gnuplot license (rights to distribute modified versions are withheld). Each data point in the matrix corresponds to two different kinds of. Note: for information on user-defined program variables, see variables. With points lc variable pt variable ps variable Alternatively you can define a respective color palette and use linecolor palette to do the coloring of the points: set timefmt Y-m-d set xdata time set format x Y-m set cbrange 1:6 set palette defined (1 red, 3.5 red, 3. The first and second columns were the X and Y coordinates of the data. point at the origin and terminal point at A.
#Gnuplot point color portable#
Variable color is always taken from the last additional column. Gnuplot is a portable command-line driven graphing utility for Linux, OS/2. Variable pointsize is always taken from the first additional column provided in a using spec. In this case the corresponding properties of each point are assigned by additional columns of input data. When using the keywords pointtype, pointsize, or linecolor in a plot command, the additional keyword variable may be given instead of a number. reset set autoscale fix set palette defined (0 'white', 1 'green') set tics scale 0 unset cbtics set cblabel 'Score' unset key plot 'data.txt' matrix with image,\ '' matrix using 1:2:(sprintf('. You can use any string and string formatting e.g. Longer strings may be plotted using plot style labels rather than points. To plot the labels, just use the with labels plotting style.

You may use any unicode character as the pointtype (assumes utf8 support). Any columns beyond the first two (x and y) are optional they correspond to additional plot properties pointsize variable. Use the test command to show what is provided by the current terminal settings.Īlternatively any single printable character may be given instead of a numerical point type, as in the example below. Individual terminals may provide a much larger number of distinct point types. The first 8 point types are shared by all terminals. If no using spec is found in the plot command, input data columns are interpreted implicitly in the order x y pointsize pointtype colorAny columns beyond the first two (x and y) are optional they correspond to additional plot properties pointsize variable, pointtype variable, etc.

The point type defaults to that of the linetype. These may differ in color, in thickness, in dot/dash pattern. The command set pointsize may be used to change the default size of all points. Each gnuplot terminal type provides a set of distinct linetypes. PointsThe points style displays a small symbol at each point.
