Assuming I have a file that looks like this (note the double newlines):
"p = 0.1"
1 1
3 3
4 1
"p = 0.2"
1 3
2 2
5 2
Is it possible to make Gnuplot plot these two datasets in one plot with the titles given on the first line of each dataset?
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’s definitely possible and your datafile is already the correct format. The functionality you’re looking for is built into
columnheader(N)which reads the data at the top of the N’th column and uses it as the plot title:which can be condensed using iteration: