in Education by
I've got a data file of the form: Series_1 "12-Dec-2011 12:00" 32 Series_1 "12-Dec-2011 12:01" 29 Series_1 "12-Dec-2011 12:02" 27 Series_1 "12-Dec-2011 12:04" 23 Series_2 "12-Dec-2011 12:01" 45 Series_2 "12-Dec-2011 12:02" 43 Series_2 "12-Dec-2011 12:04" 38 Which I'd like to plot as a number of series on the same plot using gnuplot, but I'm new to gnuplot and I cannot figure out how the using clause should be structured here. I wanted to plot column 2, date/time as the X axis with column 3 as the Y axis, with subsequent sections being overlaid. Is this possible? Surely the X axis doesn't always have to be in the first column? I tried: plot "datafile.dat" using 2:3 title 'Hits' But got the error: x range is invalid Can anyone show me where I'm going wrong? JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Expanding @Woltan's answer: if you want each section in a different colour/style, use the index (but then you have to separate sections by two emtpy lines): plot 'i' index 0 using 2:4 with lines, '' index 1 using 2:4 with lines

Related questions

0 votes
    I am a gnuplot-newbie and am stuck with the following situation. Based on this I have a gnuplot ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 22, 2022 in Education by JackTerrance
0 votes
    A very newbish question, but say I have data like this: test_data...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    You can create a scatter plot matrix using the __________ method in pandas.tools.plotting. (a) sca_matrix (b ... and answers pdf, Data Science interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    How can I ask the user to enter a value during the execution of a GnuPlot script? I would like ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 17, 2022 in Education by JackTerrance
0 votes
    I'm reading data from a csv file in help of gnuplot. Most of the lines have 8 columns, some of ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jan 16, 2022 in Education by JackTerrance
0 votes
    I am trying to retrieve a particular file from multiple FTP servers. those server details are stored in ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 18, 2022 in Education by JackTerrance
0 votes
    I want to load multiple properties files using tag in a spring 3 application. I searched on the blogs, ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 7, 2022 in Education by JackTerrance
0 votes
    I want to load multiple properties files using tag in a spring 3 application. I searched on the blogs, ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 5, 2022 in Education by JackTerrance
0 votes
    I have three 3D mesh matrices (X, Y, Z) corresponding to the xyz coordinate space. I also have a ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 19, 2022 in Education by JackTerrance
0 votes
    Is there a good command-line UNIX charting / graphing / plotting tool out there? I'm looking for ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 19, 2022 in Education by JackTerrance
0 votes
    Is there a good command-line UNIX charting / graphing / plotting tool out there? I'm looking for ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 19, 2022 in Education by JackTerrance
0 votes
    Is there a good command-line UNIX charting / graphing / plotting tool out there? I'm looking for ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 19, 2022 in Education by JackTerrance
0 votes
    Is there a good command-line UNIX charting / graphing / plotting tool out there? I'm looking for ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 19, 2022 in Education by JackTerrance
0 votes
    Which of the following is true about the base plotting system? (a) Margins and spacings are adjusted automatically ... of R Programming Select the correct answer from above options...
asked Feb 11, 2022 in Education by JackTerrance
...