|
From: Donald C H. <dc...@us...> - 2007-11-15 15:17:20
|
I am using Gnuplot 4.2 on Windows. My understanding is that the y-axis
should autoextend to the next major tic unless yfixmin and yfixmax are
set. When I try to eliminate exponential labels on the y-axis by defining
the labels (see commented ytics statements), I lose autoextention of the
yrange to the next whole number of tics. I have tried defining the ymax
and ymin range as a function (see commented yrange statement), but cannot
figure out how to assign the ymax and ymin values. The ymax and ymin
values need to be set automatically from the data.
Any solution is appreciated.
set terminal gif nocrop font 'verdana' 11 size 900,800 xFFFFFF x000000
x000000 \
x6699cc \
x87c6e0 \
xa0f3e6 \
x6b9046 \
xd5a74b \
xc17e37 \
xaa5522 \
x990033 \
xff0000
set output '02035000.gif'
set title "02035000 JAMES RIVER AT CARTERSVILLE, VA--Regulated" font
'verdana, 13'
set size .94, .9
set bmargin 5
set xdata time
set x2data time
set timefmt '%Y%m%d%H%M%S'
set format x "%b"
set format x2 "%Y"
set xtics in scale 1, 1 offset 1.8
set x2tics offset graph 0.027,-1.09, 0
set mxtics 2
set mx2tics 2
set xrange ["20060101" to "20071231"]
set x2range ["20060101" to "20071231"]
set xlabel '---- Provisional Data Subject to Revision ----' 0,-2 font
'verdana, 11' tc rgb "#ff0000"
set logscale y 10
#set ytics in (0.001, 0.01, 0.1, 1, 10, 100, 1000, 10000, 100000, 1000000)
#set ytics in autofreq 0.001, 1e1, 100000 add ("1000000" 1000000)
set ytics in
#set yrange [(10**floor(log10(ymin))):(10**(ceil(log10(ymax)+1)))]
writeback
set yrange [*:*]
set ylabel " Discharge in cubic feet per second "
set grid xtics mxtics ytics back lw 0.25 linecolor rgbcolor "#000000"
set key off
plot '02035000_daily_plot.txt' using 1:10:11 w filledcurves lc 1,\
'02035000_daily_plot.txt' using 1:9:10 w filledcurves lc 2,\
'02035000_daily_plot.txt' using 1:8:9 w filledcurves lc 3,\
'02035000_daily_plot.txt' using 1:6:8 w filledcurves lc 4,\
'02035000_daily_plot.txt' using 1:5:6 w filledcurves lc 5,\
'02035000_daily_plot.txt' using 1:4:5 w filledcurves lc 6,\
'02035000_daily_plot.txt' using 1:3:4 w filledcurves lc 7,\
'02035000_daily_plot.txt' using 1:11 w lines lw 1 lc rgb
"#000000",\
'02035000_daily_plot.txt' using 1:10 w lines lw 1 lc rgb
"#000000",\
'02035000_daily_plot.txt' using 1:9 w lines lw 1 lc rgb
"#000000",\
'02035000_daily_plot.txt' using 1:8 w lines lw 1 lc rgb
"#000000",\
'02035000_daily_plot.txt' using 1:7 w lines lw 1 lc rgb
"#000000",\
'02035000_daily_plot.txt' using 1:6 w lines lw 1 lc rgb
"#000000",\
'02035000_daily_plot.txt' using 1:5 w lines lw 1 lc rgb
"#000000",\
'02035000_daily_plot.txt' using 1:4 w lines lw 1 lc rgb
"#000000",\
'02035000_daily_plot.txt' using 1:3 w lines lw 1 lc rgb
"#000000",\
'02035000_daily_plot.txt' using 1:2 w lines lw 2 lc rgb
"#990033",\
'02035000_daily_plot.txt' using 1:12 w lines lw 1 lc rgb
"#000000",\
'02035000.DV.rdb' using 1:($2) w lines lw 2.5 lc rgb
"#FF0000"
*******************************
Don Hayes
USGS
1730 East Parham Road
Richmond, Va. 23228
(804) 261-2632
******************************* |