2012-08-15 18 views
5

में हिस्टोग्राम के लिए मैं डेटा फ़ाइल जो इसजोड़ने त्रुटि बार gnuplot

#col 1  2  3  4  5  6  7 
#bench     #these are max and min values 
#mark  #bar1 #bar2 #for the prevoius 2 values 
NOSHARE.2 43032 139412 100 45000 130000 140000 
FALSE_SHARE.2 7035 24101 5000 7500 24100 25000 
SHAREDVAR.2 11316 10248 10000 12000 10000 12000 

मैं एक ग्राफ gnuplot जो इस enter image description here

मैं अधिकतम जोड़ने की जरूरत है और की तरह दिखता है का उपयोग कर उत्पन्न करने के लिए कर रहा हूँ की तरह लग रहा है प्रत्येक बार

यहाँ मेरा gnuplot स्क्रिप्ट में कोई त्रुटि बार के रूप में न्यूनतम मूल्य

set output "truevsfalse.png" 
set title " TRUE VS FALSE SHARING " 
set boxwidth 0.9 absolute 
set style fill solid 1.00 border lt -1 
set key inside right top vertical Right noreverse noenhanced autotitles nobox 
set style histogram clustered gap 5 title offset character 0, 0, 0 
set datafile missing '-' 
set style data histograms 
set xtics border in scale 0,0 nomirror rotate by -45 offset character 0, 0, 0 
set xtics norangelimit 
set ylabel "NUMBER  OF  SHARING" 
set xlabel "BENCHMARK" 
plot 'truevsfalse.dat' using 2:xtic(1) title "true(synced and nonsynced)sharing (both vcpus)" , '' u 3 title "false sharing (both vcpus)" 

मैं इस

plot 'truevsfalse.dat' using($0- .05):2:4:5:xtic(1) with boxerrorbars title "true(synced and nonsynced)sharing (both vcpus)" , '' using ($0+0.25):3:6:7 with boxerrorbars title "false sharing (both vcpus)" 

की कोशिश की लेकिन विफल रहा है, मैं या तो हिस्टोग्राम सलाखों के बिना सिर्फ त्रुटि सलाखों जाते हैं या यदि मैं थोड़ा छवि भ्रष्ट संशोधित करने के लिए प्रयास करें।
मैं वेटोंग क्या कर रहा हूं?

धन्यवाद

+1

मैंने पहले से ही एक ही प्रश्न का उत्तर दिया होगा। (http://stackoverflow.com/questions/11718251/plotting-horizontal-lines-across-histogram-bars/11721379#11721379)। क्या वह जिस तरह से आप चाहते हैं उसे देखो? – mgilson

उत्तर

3

मूल रूप से, आप हिस्टोग्राम और त्रुटि बार साजिश ओवरले करने के लिए की जरूरत है, हालांकि, मैं देख रहा हूँ समस्या xtic(1) उपयोग कर रहा है, जो यह मुश्किल बॉक्स भूखंड पर त्रुटि बार साजिश ओवरले करने के लिए बनाता है।

set xtics ('NOSHARE.2' 0, 'FALSE_SHARE.2' 1, 'SHAREDVAR.2' 2) 
set bs 0.2 # width of a box 
plot 'junk' u ($0-bs/2):2:(bs) w boxes title "true(synced and nonsynced)sharing (both vcpus)", \ 
    'junk' u ($0-bs/2):2:4:5 w yerror notitle, \ 
    'junk' u ($0+bs/2):3:(bs) w boxes title "false sharing (both vcpus)", \ 
    'junk' u ($0+bs/2):3:6:7 w yerror notitle 
+0

यह पूरी तरह से काम किया :) – Deepthought

 संबंधित मुद्दे