[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnuplot-info
Subject:    [Gnuplot-info] bar chart; bars are on top of each other
From:       Tilly <new.tilly () googlemail ! com>
Date:       2012-08-02 17:16:22
Message-ID: 501AB5E6.7070806 () googlemail ! com
[Download RAW message or body]

Hello everyone!

I wanted to create a bar graph from three different dat. files. For the
x-value in 1918, the numbers of all files are displayed as a bar. The
structure of the data looks like this:

# num-nat.dat
1918       1542
1919       1478
...

# num-mem.dat
1918       13542
1919       14478
...

# num-small.dat
1918       17421
1919       16278
...

In the plot the bars are on top of each other and are covered by the
largest ones.

<Code>
set yrange [0:21000]
set xrange [1917.5:1929.5]
set xtics 1

set style data histogram
set style histogram clustered
set style fill solid border lt -1
#unset style fill
set boxwidth 0.25
set bars 1

plot "anzahl-nat.dat" title "FED" with boxes, "anzahl-mem.dat" title
"Member"  with boxes, "anzahl-small.dat" title "Small" with boxes
</Code>

Can someone please give an example of the right plot command?

Thanks,
Tilly

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
gnuplot-info mailing list
gnuplot-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuplot-info
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic