|
From: blank <jas...@pa...> - 2011-11-01 08:18:19
|
Hi
I'm making several plots (clustered histograms) when I use data from the
first datablock. Everything is correct.
when I use data from the second datablock (every :::1::1) the bars are not
aligned correct on the x-axis. The correct bars are not above their correct
label. Everything is translated to the right. And some bars are even outside
the graph.
This is the code I use:
set title "Total Execution time"
set decimalsign locale
set boxwidth 0.9 relative
set style data histograms
set style histogram cluster
set style fill solid 1.0 border lt -1
set grid
set ylabel "Time (s)"
set xlabel "CPU Clockfrequency (GHz)"
plot 'totalcpufreq.dat' every :::1::1 using 2:xticlabels(1) title "4
threads", '' every :::1::1 using 3 title "8 threads"
This is the data-file:
#TOTAL ENERGY USE -- block1
#in Wh
# Benchmark Blackscholes
# # threads 4 8
# Clockfreq
1,6 6,59 4,49
1,8 6,07 3,90
2 5,61 3,82
#TOTAL EXECUTION TIME -- block2
#in s
# Benchmark Blackscholes
# # threads 4 8
# Clockfreq
1,6 318 212
1,8 283 176
2 252 166 79
How can I solve this? Thanks
Jasper
--
View this message in context: http://old.nabble.com/Clustered-histogram-from-second-datablock-tp32757327p32757327.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|
|
From: walter h. <wh...@bf...> - 2011-11-01 11:39:15
|
hi Jasper, it would be helpful to have the version of your gnuplot and maybe the source where you get it from. re, wh Am 01.11.2011 09:18, schrieb blank: > > Hi > > I'm making several plots (clustered histograms) when I use data from the > first datablock. Everything is correct. > when I use data from the second datablock (every :::1::1) the bars are not > aligned correct on the x-axis. The correct bars are not above their correct > label. Everything is translated to the right. And some bars are even outside > the graph. > > This is the code I use: > set title "Total Execution time" > set decimalsign locale > set boxwidth 0.9 relative > set style data histograms > set style histogram cluster > set style fill solid 1.0 border lt -1 > set grid > set ylabel "Time (s)" > set xlabel "CPU Clockfrequency (GHz)" > plot 'totalcpufreq.dat' every :::1::1 using 2:xticlabels(1) title "4 > threads", '' every :::1::1 using 3 title "8 threads" > > This is the data-file: > #TOTAL ENERGY USE -- block1 > #in Wh > # Benchmark Blackscholes > # # threads 4 8 > # Clockfreq > 1,6 6,59 4,49 > 1,8 6,07 3,90 > 2 5,61 3,82 > > #TOTAL EXECUTION TIME -- block2 > #in s > # Benchmark Blackscholes > # # threads 4 8 > # Clockfreq > 1,6 318 212 > 1,8 283 176 > 2 252 166 79 > > > How can I solve this? Thanks > Jasper |
|
From: walter h. <wh...@bf...> - 2011-11-02 13:08:55
|
hi jasper, if have only an older version (4.2) and it seems it has some problems with clustered histograms and xtic labels. re, wh Am 01.11.2011 14:16, schrieb Jasper Vanlerberghe: > Hi > > I have version 4.4 patchlevel 0. I installed from the ubuntu package > manager. (apt-get install gnuplot) > > Jasper > > Op 01-11-11 12:39, walter harms schreef: >> hi Jasper, >> it would be helpful to have the version of your gnuplot and maybe the >> source >> where you get it from. >> >> re, >> wh >> >> >> Am 01.11.2011 09:18, schrieb blank: >>> Hi >>> >>> I'm making several plots (clustered histograms) when I use data from the >>> first datablock. Everything is correct. >>> when I use data from the second datablock (every :::1::1) the bars >>> are not >>> aligned correct on the x-axis. The correct bars are not above their >>> correct >>> label. Everything is translated to the right. And some bars are even >>> outside >>> the graph. >>> >>> This is the code I use: >>> set title "Total Execution time" >>> set decimalsign locale >>> set boxwidth 0.9 relative >>> set style data histograms >>> set style histogram cluster >>> set style fill solid 1.0 border lt -1 >>> set grid >>> set ylabel "Time (s)" >>> set xlabel "CPU Clockfrequency (GHz)" >>> plot 'totalcpufreq.dat' every :::1::1 using 2:xticlabels(1) title "4 >>> threads", '' every :::1::1 using 3 title "8 threads" >>> >>> This is the data-file: >>> #TOTAL ENERGY USE -- block1 >>> #in Wh >>> # Benchmark Blackscholes >>> # # threads 4 8 >>> # Clockfreq >>> 1,6 6,59 4,49 >>> 1,8 6,07 3,90 >>> 2 5,61 3,82 >>> >>> #TOTAL EXECUTION TIME -- block2 >>> #in s >>> # Benchmark Blackscholes >>> # # threads 4 8 >>> # Clockfreq >>> 1,6 318 212 >>> 1,8 283 176 >>> 2 252 166 79 >>> >>> >>> How can I solve this? Thanks >>> Jasper > > |