|
From: Eric S. <eri...@co...> - 2006-01-17 16:00:53
|
Hi,
I have been working with GNU plot and the autoscale function and have been
having some trouble. Using "set autoscale ymax" does not seem to yield the
result that I thought it would. Hopefully someone can shed some light on
this for me.
Here is an output of my plot directives:
set data style lines
set grid
set term pbm color
set autoscale ymax
set xrange [0:7]
set tics in
set format x ''
set title "01/04/06 through 01/11/06"
set ylabel "Load Average"
set label 1 "Wednesday 04" at 0.5,-.08 center
set label 2 "Thursday 05" at 1.5,-.08 center
set label 3 "Friday 06" at 2.5,-.08 center
set label 4 "Saturday 07" at 3.5,-.08 center
set label 5 "Sunday 08" at 4.5,-.08 center
set label 6 "Monday 09" at 5.5,-.08 center
set label 7 "Tuesday 10" at 6.5,-.08 center
set xtics ("" 1, "" 2, "" 3, "" 4, "" 5, "" 6, "" 7, "" 8, "" 9, "" 10, ""
11, "" 12, "" 13, "" 14, "" 15, "" 16, "" 17, "" 18, "" 19, "" 20, "" 21, ""
22, "" 23, "" 24, "" 25, "" 26, "" 27, "" 28, "" 29, "" 30, "" 31, "" 32, ""
33, "" 34, "" 35, "" 36, "" 37, "" 38, "" 39, "" 40, "" 41, "" 42, "" 43, ""
44, "" 45, "" 46, "" 47, "" 48, "" 49, "" 50, "" 51, "" 52, "" 53, "" 54, ""
55, "" 56, "" 57, "" 58, "" 59, "" 60)
plot '< cat /data | awk "{ if (\$2 > 004) print \$2 - 004, \$6 }"' title
"host"
The labels for the x axis (1-7) do not show up, because the resulting graph
(see http://spot.colorado.edu/~schoelle/untitled.bmp) has it's y values
starting at 2 instead of 0.
I figured with "set autoscale ymax" GNUplot would only adjust the maximum
value on the y axis and leave the minimum values starting at 0.
I thought maybe I was thinking of this backwards and tried "set autoscale
ymin" - but no change resulted in the graph.
What the heck am I doing wrong???
Thanks.
PS. Please reply to me if you can, I don't know if I can subscribe to the
list/newsgroup.
Eric Schoeller
ITS Enterprise Services
University of Colorado at Boulder
|