Is it possible to pass to plot data in a string?
I mean do something like this:
plot "09-13-2010,2263.80 09-14-2010,2500" using 1:2 with lines
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It is possible to do something like:
Where the
<character indicates to Gnuplot that we want our input from the output of a command. Gnuplot separates records with a newline. Groups of records are separated by a blank record. Within a record, the default column separator is a space. In the above exampletris used to split your data into lines, and the rewrite the lines into records.Another way to plot your data from a string is to use the “-” input specifier, and then load the data in from the command line. A program could easily emit the following:
Your best bet is to use an input file like:
Assuming the input file is named
mydata.txt, you can then plot it with the commands:All the examples above give you something like:

If you want to plot two data series using dates and the `-‘ input you could do the following:
The previous example gives:
