Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #2568 > unrolled thread
| Started by | dlhinchee@gmail.com |
|---|---|
| First post | 2014-08-29 15:08 -0700 |
| Last post | 2014-08-29 15:08 -0700 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.graphics.apps.gnuplot
help with time format & trend vs.seasonal plots dlhinchee@gmail.com - 2014-08-29 15:08 -0700
| From | dlhinchee@gmail.com |
|---|---|
| Date | 2014-08-29 15:08 -0700 |
| Subject | help with time format & trend vs.seasonal plots |
| Message-ID | <27edbc6c-5cdc-43cd-9600-901a021144b0@googlegroups.com> |
Hi, I'm just starting out with Gnuplot ans would appreciate help with a plot. I'm plotting from a csv file with monthly output data for 7 years, for Jan 2014 through Dec 2020. Here's a sample of the file: #1,2 #Date,F001 1/31/2014,1028 2/28/2014,909 3/31/2014,687 4/30/2014,832 5/31/2014,971 6/30/2014,790 7/31/2014,886 8/31/2014,997 9/30/2014,983 10/31/2014,945 11/30/2014,817 12/31/2014,1009 1/31/2015,973 2/28/2015,782 3/31/2015,35 4/30/2015,0 5/31/2015,129 6/30/2015,386 7/31/2015,626 8/31/2015,467 9/30/2015,360 10/31/2015,205 11/30/2015,164 12/31/2015,437 ... 12/31/2020,383 I'm able to plot the trend (i.e. the full range from Jan 14 to Dec 2020).I would also like to create a seasonal plot that plots Jan-Dec for each year. I can get one year to (almost) work using the following commands: set datafile separator "," set xdata time set timefmt '%m/%d/%Y' set title "Seasonal" set ylabel "Units" set xlabel "Date" set yrange [0:1200] set xrange ["1/1/2014":"12/31/2014"] set format x "%m" plot "Data_File.csv" u 1:2 w linesp notitle What's the proper syntax to create a plot with one line for 2014 and another line for 2015? Also, the plot generated by the script plots the first data point, 1/31/2014, 1028 aligned over 02 (Feb) on the X axis. Thanks in advance for the help! David
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web