|
From: Bill T. <bt...@cs...> - 2008-06-04 20:47:36
|
I have this limited data set with the last 2 sets of numbers a don't care anymore. April 7 2008, 15, 61, -24, 0, 0, 0, 0 April 14 2008, 12, 59, -10, 0, 0, 0, 0 April 21 2008, 17, 75, -8, 0, 0, 0, 0 April 28 2008, 21, 89, -6, 0, 0, 0, 0 May 5 2008, 14, 81, -0, 0, 0, 0, 0 May 13 2008, 17, 119, -0, 0, 0, 0, 0 May 20 2008, 17, 115, -0, 0, 0, 0, 0 May 27 2008, 7, 85, -0, 0, 0, 0, 0 June 3 2008, 11, 88, -0, 0, 0, 0, 0 This is the plot setup which no longer has any a-axis labels and it is probably something simple. <<<<<<<<< Firstdate 2008040100:00:00 >>>>>>>>>>>>>>>>>> XTICS = ( "7.1.0 Release" 0 ,"April 14 2008" 1 ,"April 21 2008" 2 ,"April 28 2008" 3 ,"May 5 2008" 4 ,"May 13 2008" 5 ,"May 20 2008" 6 ,"May 27 2008" 7 ,"June 3 2008" 8 ) FULL PLOT command: set terminal postscript color eps 24 set title "Condor Download Plots" set output "/tmp/condor-nmiplots-BAUh2n.data" set key top left set size ratio 0.3 2,2 set key outside right top #sea green set style line 1 lt rgb "#2e8b57" #firebrick set style line 2 lt rgb "#b22222" #yellow1 set style line 3 lt rgb "#ffff00" #orange - tests set style line 4 lt rgb "#ffa500" #blue3 - framework set style line 5 lt rgb "#0000cd" #gold1 - platform set style line 6 lt rgb "#ffd700" #cyan - condor set style line 7 lt rgb "#00ffff" #Hot Pink - condor set style line 8 lt rgb "#ff69b4" #honeydew 3 - condor set style line 9 lt rgb "#C1CDC1" set style fill solid .75 border -1 set style histogram rowstacked title offset character 0, 0, 0 set datafile missing '-' set style data histograms set ylabel "Download Results per Week" set xdata time set timefmt "%s" set format x "%b\n%d\n%y" # day in seconds 86400 # week in seconds 604800 # Quarters in seconds # set xtics 7884000 # monthly (1/3 of a quarter) set mytics 2 set xtics rotate 90 set xrange ["1206853200":] set xtics ( "7.1.0 Release" 0 ,"April 14 2008" 1 ,"April 21 2008" 2 ,"April 28 2008" 3 ,"May 5 2008" 4 ,"May 13 2008" 5 ,"May 20 2008" 6 ,"May 27 2008" 7 ,"June 3 2008" 8 ) plot "/tmp/condor-nmiplots-cYynkG.data" using 1:3 with boxes ls 5 title "Good Downloads", "/tmp/condor-nmiplots-cYynkG.data" using 1:2 with boxes ls 9 title "Good Source Downloads", "/tmp/condor-nmiplots-cYynkG.data" using 1:4 with boxes ls 7 title "Bad Downloads", "/tmp/condor-nmiplots-cYynkG.data" using 1:5 with boxes ls 3 title "Good Downloads/20", "/tmp/condor-nmiplots-cYynkG.data" using 1:6 with boxes ls 8 title "Bad Downloads/20", "/tmp/condor-nmiplots-cYynkG.data" using 1:7 with boxes ls 1 title "Good Downloads/200", "/tmp/condor-nmiplots-cYynkG.data" using 1:8 with boxes ls 2 title "Bad Downloads/200" Thanks!!!!! Bill |
|
From: Thomas S. <t.s...@fz...> - 2008-06-05 08:43:21
|
some remarks: there's no need to specify xrange in seconds, use the time format of the data instead: #set timefmt "%s" #set xrange ["1206853200":] set timefmt "%B %d %Y" set xrange ["April 1 2008":*] your xtics are far off the axis range - all at the position of "January 01 2000" (insert a 'show xrange' line into your current script file and you will see it). this works: set xtics ( "7.1.0 Release" "April 7 2008" ,"April 14 2008","April 21 2008","April 28 2008","May 5 2008","May 13 2008","May 20 2008","May 27 2008","June 3 2008") even when plotting time data each string separated by space, tab, ... counts, that means that for a data file like this April 7 2008, 15, 61, -24, 0, 0, 0, 0 plotting the 2nd value (here: '15') vs. time needs a command like this: plot .... us 1:4 and not 'us 1:2' with the above changes i got a nice plot using the following command: plot "/tmp/condor-nmiplots-cYynkG.data" using 1:5 with boxes ls 5 title "Good Downloads", "" using 1:4 with boxes ls 9 title "Good Source Downloads", "" using 1:6 with boxes ls 7 title "Bad Downloads", "" using 1:7 with boxes ls 3 title "Good Downloads/20", "" using 1:8 with boxes ls 8 title "Bad Downloads/20", "" using 1:9 with boxes ls 1 title "Good Downloads/200", "" using 1:10 with boxes ls 2 title "Bad Downloads/200" more information you will get when reading the manual or the output of the commands: help timefmt help time/date help xtics help datafile -- View this message in context: http://www.nabble.com/Can%27t-get-labeling-via-xtics-to-work-tp17656272p17664963.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: madcitybt <bt...@cs...> - 2008-06-03 17:51:27
|
I have this limited data set with the last 2 sets of numbers a don't care anymore. April 7 2008, 15, 61, -24, 0, 0, 0, 0 April 14 2008, 12, 59, -10, 0, 0, 0, 0 April 21 2008, 17, 75, -8, 0, 0, 0, 0 April 28 2008, 21, 89, -6, 0, 0, 0, 0 May 5 2008, 14, 81, -0, 0, 0, 0, 0 May 13 2008, 17, 119, -0, 0, 0, 0, 0 May 20 2008, 17, 115, -0, 0, 0, 0, 0 May 27 2008, 7, 85, -0, 0, 0, 0, 0 June 3 2008, 11, 88, -0, 0, 0, 0, 0 This is the plot setup which no longer has any a-axis labels and it is probably something simple. <<<<<<<<< Firstdate 2008040100:00:00 >>>>>>>>>>>>>>>>>> XTICS = ( "7.1.0 Release" 0 ,"April 14 2008" 1 ,"April 21 2008" 2 ,"April 28 2008" 3 ,"May 5 2008" 4 ,"May 13 2008" 5 ,"May 20 2008" 6 ,"May 27 2008" 7 ,"June 3 2008" 8 ) FULL PLOT command: set terminal postscript color eps 24 set title "Condor Download Plots" set output "/tmp/condor-nmiplots-BAUh2n.data" set key top left set size ratio 0.3 2,2 set key outside right top #sea green set style line 1 lt rgb "#2e8b57" #firebrick set style line 2 lt rgb "#b22222" #yellow1 set style line 3 lt rgb "#ffff00" #orange - tests set style line 4 lt rgb "#ffa500" #blue3 - framework set style line 5 lt rgb "#0000cd" #gold1 - platform set style line 6 lt rgb "#ffd700" #cyan - condor set style line 7 lt rgb "#00ffff" #Hot Pink - condor set style line 8 lt rgb "#ff69b4" #honeydew 3 - condor set style line 9 lt rgb "#C1CDC1" set style fill solid .75 border -1 set style histogram rowstacked title offset character 0, 0, 0 set datafile missing '-' set style data histograms set ylabel "Download Results per Week" set xdata time set timefmt "%s" set format x "%b\n%d\n%y" # day in seconds 86400 # week in seconds 604800 # Quarters in seconds # set xtics 7884000 # monthly (1/3 of a quarter) set mytics 2 set xtics rotate 90 set xrange ["1206853200":] set xtics ( "7.1.0 Release" 0 ,"April 14 2008" 1 ,"April 21 2008" 2 ,"April 28 2008" 3 ,"May 5 2008" 4 ,"May 13 2008" 5 ,"May 20 2008" 6 ,"May 27 2008" 7 ,"June 3 2008" 8 ) plot "/tmp/condor-nmiplots-cYynkG.data" using 1:3 with boxes ls 5 title "Good Downloads", "/tmp/condor-nmiplots-cYynkG.data" using 1:2 with boxes ls 9 title "Good Source Downloads", "/tmp/condor-nmiplots-cYynkG.data" using 1:4 with boxes ls 7 title "Bad Downloads", "/tmp/condor-nmiplots-cYynkG.data" using 1:5 with boxes ls 3 title "Good Downloads/20", "/tmp/condor-nmiplots-cYynkG.data" using 1:6 with boxes ls 8 title "Bad Downloads/20", "/tmp/condor-nmiplots-cYynkG.data" using 1:7 with boxes ls 1 title "Good Downloads/200", "/tmp/condor-nmiplots-cYynkG.data" using 1:8 with boxes ls 2 title "Bad Downloads/200" Thanks!!!!! Bill -- View this message in context: http://www.nabble.com/Can%27t-get-labeling-via-xtics-to-work-tp17629486p17629486.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |