Quantcast

Getting labels on top of bar graph

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Getting labels on top of bar graph

bombcan
Hi
I have a datafile that looks like

bebwbp1d,54882.7
bebwbz0d,32055.3
bebwbrcd,27715.4
bebwbq1d,25276
bebwbr1d,23267
wmbrsdb,8075.34
besmop1d,5089.94
dwmeap,4105.15
esmoq1d,3982.23
dwhdb,3692.51
emsdb,2997.74
betrtp3d,2910.4
dwmeas,2549.86
wmbrssg,2446.41

My gnuplot script looks like this
#!/opt/gnuplot/bin/gnuplot


#input
set datafile separator ","

unset key
#set style fill solid
set style fill transparent solid 0.5 noborder
set boxwidth 0.5
#set object 1 rectangle from screen 0,0 to screen 1,1 fillcolor rgb"green" behind
set title "Top 30 DB2 Databases on DDR `date +%m-%Y`"

set grid
set xtics rotate by -45
set xlabel 'DB2 Databases'
set ylabel 'Data in GBs'
set ytics 2000


set term svg size 1200,600 font "Arial,10"
set output '/tmp/DB2_space.svg'

plot "/tmp/final_DB2_DB_space1.csv" using 2:1:xtic(1) with boxes lc rgb "black"

I've tried lots of things to try and get the y value appear on top of the bar.

Please help !

Thanks in advance.
Loading...