01.02.2014 Views

GNUPlot Manual

GNUPlot Manual

GNUPlot Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

36 SET-SHOW gnuplot 4.0 143<br />

36.62 Ticscale<br />

The size of the tic marks can be adjusted with set ticscale.<br />

Syntax:<br />

set ticscale { {}}<br />

show tics<br />

If is not specified, it is 0.5*. The default size is 1.0 for major tics and 0.5 for minor<br />

tics. Note that it is possible to have the tic marks pointing outward by specifying a negative size.<br />

36.63 Timestamp<br />

The command set timestamp places the time and date of the plot in the left margin.<br />

Syntax:<br />

set timestamp {""} {top|bottom} {{no}rotate}<br />

{}{,} {""}<br />

unset timestamp<br />

show timestamp<br />

The format string allows you to choose the format used to write the date and time. Its default value is<br />

what asctime() uses: "%a %b %d %H:%M:%S %Y" (weekday, month name, day of the month, hours,<br />

minutes, seconds, four-digit year). With top or bottom you can place the timestamp at the top or<br />

bottom of the left margin (default: bottom). rotate lets you write the timestamp vertically, if your<br />

terminal supports vertical text. The constants and are offsets from the default position<br />

given in character screen coordinates. is used to specify the font with which the time is to be<br />

written.<br />

The abbreviation time may be used in place of timestamp.<br />

Example:<br />

set timestamp "%d/%m/%y %H:%M" 80,-2 "Helvetica"<br />

See set timefmt (p. 143) for more information about time format strings.<br />

36.64 Timefmt<br />

This command applies to timeseries where data are composed of dates/times. It has no meaning unless<br />

the command set xdata time is given also.<br />

Syntax:<br />

set timefmt ""<br />

show timefmt<br />

The string argument tells gnuplot how to read timedata from the datafile. The valid formats are:<br />

Time Series timedata Format Specifiers<br />

Format Explanation<br />

%d day of the month, 1–31<br />

%m month of the year, 1–12<br />

%y year, 0–99<br />

%Y year, 4-digit<br />

%j day of the year, 1–365<br />

%H hour, 0–24<br />

%M minute, 0–60<br />

%s seconds since the Unix epoch (1970-01-01 00:00 UTC)<br />

%S second, 0–60<br />

%b three-character abbreviation of the name of the month<br />

%B name of the month

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!