bar graphs in gnuplot

bar graphs in gnuplot

Post by S. Ramakrishna » Thu, 13 Aug 1998 04:00:00



Hi,
        I need to generate a bar graph like this : There should
        be divided bars, with each bar divided into three parts,
        coloured red, yellow and white. There should be one bar for
        each month of a year. Does anybody knows how to generate such
        a graph using gnuplot ?

Thanks in advance,

Cheers,
rama

-------------------------------------------------------------

Design Software Engineering-APD, Texas Instruments, Bangalore, India.,
Phone  : 5269451-102

I don't suffer from insanity. I enjoy every minute of it.

 
 
 

bar graphs in gnuplot

Post by Bernhard Reit » Tue, 18 Aug 1998 04:00:00




Quote:>    I need to generate a bar graph like this : There should
>    be divided bars, with each bar divided into three parts,
>    coloured red, yellow and white. There should be one bar for
>    each month of a year. Does anybody knows how to generate such
>    a graph using gnuplot ?

Use a recent versison of gnuplot (e.g. 3.6beta (pl347))

Use the boxwidth command and the possibility to
calculate values in the using option of plot.

Just calculate the boxvalues like you want, e.g :
        plot "x.dat" using ($0-0.2):1 linetype 2, "" using ($0-0.2):($1+$2) linetype 3, using ($0+0.2):3 linetype 2, "" using ($0+0.2):($3+$4) linetype 3

You will get the idea, when you see my example contained in the
archive with the awk script, which allows filled boxes.

http://www.usf.uni-osnabrueck.de/~breiter/tools/gnuplot/barchart.en.html

Have fun,
        Bernhard

 
 
 

1. Generating Bar Graphs with GNUPlot

Hi there,

I've been through all the docs and demos I could find, but haven't seen
a way to create bar graphs using GNUPlot, only line graphs.  Is GNUPlot
capable of creating bar graphs?  If so, can you please direct me to the
docs and/or demos pages?

Thanks,
Steve

--
     .o$""$$.                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   $$'    '$                              Steve Fiorillo
   $$                                     SWIT OPS Project Manager      
   $$$                                    Sun Microsystems, Inc.
   "$$$o     o"$$    o$$  o"$$  o""$.      
    "$$$$o  " $$"   o$$  " o$$o"  o$$     MS UBRM05-171    
 o    "$$$$  $$   o$$$'   .$$$   .$$" .   500 Eldorado Blvd                  
$$     o$$   $$  o" $$ o" $$$    $$" $    Broomfield, CO 80021
"$o,,,o""    "$$"   "$"   $$     "$$"          
                                          303-272-8785  
   m  i  c  r  o  s  y  s  t  e  m  s     x78785
(internal)                                                                
                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2. Need code or DLL for rendering spheres and cylinders in Windows

3. bar graphs with gnuplot?

4. glRotate: How to rotate other than the center of an Object?

5. Using gnuplot To Simulate Bar Graph

6. Help, Please

7. Gnuplot 3D bar graph (How?)

8. Microsoft Publisher

9. Need graph plotting program for UNIX -- not gnuplot or graph

10. Need scriptable utility to generate bar/line graphs (gif/jpeg format)

11. 2D or 3D bar graphs?

12. How to get real time animated bar graph?

13. Drawing bar or xy graphs