gnuplot documentation
gnuplot documentation
gnuplot documentation
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
102 <strong>gnuplot</strong> 4.3 70 SET-SHOW<br />
set format y "%+-12.3f"; set ytics(12345) # "+12345.000 "<br />
set format y "%.2t*10^%+03T"; set ytic(12345)# "1.23*10^+04"<br />
set format y "%s*10^{%S}"; set ytic(12345) # "12.345*10^{3}"<br />
set format y "%s %cg"; set ytic(12345) # "12.345 kg"<br />
set format y "%.0P pi"; set ytic(6.283185) # "2 pi"<br />
set format y "%.0f%%"; set ytic(50) # "50%"<br />
set log y 2; set format y ’%l’; set ytics (1,2,3)<br />
#displays "1.0", "1.0" and "1.5" (since 3 is 1.5 * 2^1)<br />
There are some problem cases that arise when numbers like 9.999 are printed with a format that requires<br />
both rounding and a power.<br />
If the data type for the axis is time/date, the format string must contain valid codes for the ’strftime’<br />
function (outside of <strong>gnuplot</strong>, type "man strftime"). See set timefmt (p. 137) for a list of the allowed<br />
input format codes.<br />
70.21.3 Time/date specifiers<br />
In time/date mode, the acceptable formats are:<br />
Tic-mark label Date/Time Format Specifiers<br />
Format Explanation<br />
%a abbreviated name of day of the week<br />
%A full name of day of the week<br />
%b or %h abbreviated name of the month<br />
%B full name of the month<br />
%d day of the month, 1–31<br />
%D shorthand for "%m/%d/%y" (only output)<br />
%F shorthand for "%Y-%m-%d" (only output)<br />
%k hour, 0–23 (one or two digits)<br />
%H hour, 00–23 (always two digits)<br />
%l hour, 1–12 (one or two digits)<br />
%I hour, 01–12 (always two digits)<br />
%j day of the year, 1–366<br />
%m month, 1–12<br />
%M minute, 0–60<br />
%p ”am” or ”pm”<br />
%r shorthand for "%I:%M:%S %p" (only output)<br />
%R shorthand for %H:%M" (only output)<br />
%S second, 0–60<br />
%T shorthand for "%H:%M:%S" (only output)<br />
%U week of the year (week starts on Sunday)<br />
%w day of the week, 0–6 (Sunday = 0)<br />
%W week of the year (week starts on Monday)<br />
%y year, 0-99<br />
%Y year, 4-digit<br />
Except for the non-numerical formats, these may be preceded by a "0" ("zero", not "oh") to pad the<br />
field length with leading zeroes, and a positive digit, to define the minimum field width (which will be<br />
overridden if the specified width is not large enough to contain the number). There is a 24-character<br />
limit to the length of the printed text; longer strings will be truncated.<br />
Examples:<br />
Suppose the text is "76/12/25 23:11:11". Then<br />
set format x # defaults to "12/25/76" \n "23:11"<br />
set format x "%A, %d %b %Y" # "Saturday, 25 Dec 1976"<br />
set format x "%r %D" # "11:11:11 pm 12/25/76"