String functions |
Function |
Arguments |
Returns |
gprintf("format",x,...) |
any |
string result from applying gnuplot's format parser |
sprintf("format",x,...) |
multiple |
string result from C-language sprintf |
strlen("string") |
string |
int length of string in bytes |
strstrt("string","key") |
strings |
int index of first character of substring "key" |
substr("string",beg,end) |
multiple |
string "string"[beg:end] |
strftime("timeformat",t) |
any |
string result from applying gnuplot's time parser |
strptime("timeformat",s) |
string |
seconds since year 1970 as given in string s |
system("command") |
string |
string containing output stream of shell command |
word("string",n) |
string, int |
returns the nth word in "string" |
words("string") |
string |
returns the number of words in "string" |