start a new histogram series for the 3rd column:
reset
set title "Query 1 - BSBM"
set style data histogram
set boxwidth 0.3 absolute
set style histogram rowstacked
set style fill solid 1.0 border lt -1
set ylabel "Number of disk page reads"
set xtics offset first -0.15,0
plot "query1.dat" using 2 t "sequential read", "" using 3 t "random read",
newhistogram at 0.3, "" using 4:xtic(1) t "our approach"
mkn86 wrote:
>
> Hi!
>
> I need to plot a bar chart as a rowstacked histogram.
> The first picture "histo1.jpg" shows the diagram without rowstacking.
> http://old.nabble.com/file/p28933153/histo1.jpg
> My problem now is that I want the red bar on top of the green bar
> (sequential read + random read). So in sum, I will have for each data set
> (1mio, 2mio, ..., 31mio) two bar charts, namely a rowstacked one (green +
> red) and the blue one.
> Therefore I run this commands:
> set title "Query 1 - BSBM"
> set style data histogram
> set boxwidth 0.75 absolute
> set style histogram rowstacked
> set style fill solid 1.0 border lt -1
> set yrange [0:300]
> set ylabel "Number of disk page reads"
> plot "query1.dat" using 2 t "sequential read", "" using 3 t "random read",
> "" using 4:xtic(1) t "our approach"
>
> which delivers me this:
> http://old.nabble.com/file/p28933153/histo2.jpg
> Unfortunately the blue bar (our approach) is also stacked up. Does someone
> know how I can have two bars per dataset?
> Thanks a lot in advance for any help!
>
> Cheers
>
> P.S.
> the dat file looks like this:
> # sequential page random page our model
> 1mio 6 67 38
> 2mio 6 102 54
> 5mio 8 100 54
> 10mio 4 104 54
> 31mio 12 120 54
>
--
View this message in context: http://old.nabble.com/rowstack-with-2-columns-per-entry-tp28933153p28933765.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|