|
From: Charles P. W. <cpw...@cp...> - 2006-04-26 13:43:58
|
On Wed, 2006-04-26 at 12:21 +0200, Hans-Bernhard Br=C3=B6ker wrote: > Charles P. Wright wrote: > > I would like to have the maximum and minimum values have a horizontal > > line as in: > > http://mathworld.wolfram.com/images/eps-gif/BoxandWhiskers_1000.gif >=20 > Then please read 'help candlesticks' and note how it points you to 'set= =20 > bars'. Which happens to do what you're looking for. Hans, Thanks for the reply, but I've tried adding "set bars" with out success. The "set boxwidth" does control the width of the bars as advertised. If you read the "set bars" help it actually claims to set the box width not the tics: The `set bars` command controls the tics at the ends of error bars, and also the width of the boxes in plot styles candlesticks and financebars. The help candlesticks is a bit ambiguous: The width of the rectangle can be controlled by the `set boxwidth` comma= nd. For backwards compatibility with earlier gnuplot versions, when the boxwidth parameter has not been set then the width of the candlestick rectangle is controlled by `set bars <width>`. It seems because I do have a set boxwidth, the set bars should produce ticks, but they don't. The following script produces the attached plot. Even though I set the tick width using "set bars", they don't show up. Charles set yrange [0:400]; set ytics nomirror; set boxwidth 0.25; set bars 0.125; set xtics nomirror ("VANILLA" 0.23, "VANSYNC" 0.53, "STRACE" 0.82, "AMINOTRACE" 1.12, "AMINONULL" 1.43, "AMINOACI" 1.73, "AMINOACID" 2.03) set xrange [0:2.25] set ylabel "Operations/second" font 'Helvetica,15'; set offsets 0.125,0.0; set size 1.5,1; set key top right; set output "random-write-1-bp.png" set terminal png; plot "/tmp/foo.dat" index 0 title "Op/s" axes x1y1 with candlestick , "/tmp/foo.dat" index 1 notitle axes x1y1 with candlestick ; [cwright@localhost data]$ gnuplot --version gnuplot 4.0 patchlevel 0 |