datetime - Parsing specific time format for drawing graph by Gnuplot -
I want to graph with these statistics:
(cur | prev) 01: March 22, 2011? Sergio (talk | contributions)? . . (20,789 bytes) (+4)? . . (> VoIP) (Core | Previous) 01:23, 30 March 2011? Sergio (talk | contributions)? . . (20,790 bytes) (+1)? . . (> VoIP) (Cr | Previous) 01:25, 30 March 2011? Sergio (talk | contribs) | . . (20, 9 50 bytes) (+160)? . . (> VoIP) (Core | Previous) 10:15, 30 March 2011? What is Tcatm (talk | . . (21,028 bytes) (+78)? . . (& Gt; Virtual Goods) (max | Previous) 12:43, 30 March 2011? Talk talk | . . (21,173 bytes) (+145)? . . (& Gt ;? Home) (Courses | Previous) 12:43, 30 March 2011? Talk talk | . . (21,162 bytes) (-11)? . . (& Gt; home) I need to count the lines on the graph and y-axis on the x-axis Example:
X-axis = "30/3" y-axis = "6" (six lines on March 30) X-axis = "31/3" y-axis = .... How can I do this article with code in GnomePlot?
Assume that you have the same format for all entries, this month's day is always your data The file is the fifth column, then do the following:
set xdata time set time group "% d% B% Y" set format x "% d /% M" conspiracy "data" U5: (1.0) Smooth friction with LP PT7 The first line tells gnuplot to interpret data as data time.
The second row tells GNUplot how the time data should be read:% d day,% B is the full name of the month (which is "march" instead of "3" or "march" ),% Y is the year with four digits.
The third line tells GNUplot that the format on which the date on conspiracy,% d for the day and% T for the month is divided by / . The fourth row plots your data file using the 5th column in X data (your data is the 5th entry in your data file, you post it) and adding 1 for each entry The latter comes with the smooth freq option I modified the following sample data, just as an example:
(q | ) 01:22, 28 March 2011? Sergio (talk | contribs) | . . (20,789 bytes) (+4)? . . (& Gt;? VoIP) (Core | Previous) 01:23, 28 March 2011? Sergio (talk | contribs) | . . (20,790 bytes) (+1)? . . (& Gt;? VoIP) (Cr | Previous) 01:25, 29 March 2011? Sergio (talk | contribs) | . . (20, 9 50 bytes) (+160)? . . (& Gt;? VoIP) (Cr | Previous) 01:22, 29 March 2011? Sergio (talk | contribs) | . . (20,789 bytes) (+4)? . . (& Gt;? VoIP) (Cr | Previous) 01:23, 30 March 2011? Sergio (talk | contribs) | . . (20,790 bytes) (+1)? . . (& Gt;? VoIP) (Cr | Previous) 01:25, 30 March 2011? Sergio (talk | contribs) | . . (20, 9 50 bytes) (+160)? . . (& Gt;? VoIP) (Cr | Previous) 10:15, 30 March 2011? What is Tcatm (talk | . . (21,028 bytes) (+78)? . . (& Gt; Virtual Goods) (max | Previous) 12:43, 30 March 2011? Talk talk | . . (21,173 bytes) (+145)? . . (& Gt ;? Home) (Courses | Previous) 12:43, March 31, 2011? Talk talk | . . (21,162 bytes) (-11)? . . (& Gt; home) With the code at the beginning of my answer, this data looks like this:
If you would like a graph like a histogram, take a look at this.
Comments
Post a Comment