home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / graphics / gnuplot / 585 < prev    next >
Encoding:
Internet Message Format  |  1992-12-29  |  2.1 KB

  1. Path: sparky!uunet!wupost!zaphod.mps.ohio-state.edu!cs.utexas.edu!tamsun.tamu.edu!abgen.tamu.edu!vamsee
  2. From: vamsee@abgen.tamu.edu (Vamsee Lakamsani)
  3. Newsgroups: comp.graphics.gnuplot
  4. Subject: bar plots,  multiple graphs and label control
  5. Date: 29 Dec 1992 07:40:07 GMT
  6. Organization: Center for Macromolecular Design, Texas A&M University.
  7. Lines: 77
  8. Distribution: world
  9. Message-ID: <1hovcnINNe6e@tamsun.tamu.edu>
  10. NNTP-Posting-Host: abgen.tamu.edu
  11.  
  12. How does one do bar plots using gnuplot ? Is it possible to fill up the
  13. bars with different patterns or just plain black ?
  14.  
  15. As an example, suppose I have the following values,
  16.  
  17. a  20
  18. b  30
  19.  
  20. My bar plot should look somewhat like (with the bars filled with some pattern),
  21.          __
  22. |   __  |  |
  23. |  |  | |  |
  24. |  |  | |  |
  25. |  |  | |  |
  26. |  |  | |  |
  27. -----------------------------
  28.     a    b
  29.  
  30. Is it possible to do  one pattern for bar "a" and another for bar "b" ?
  31. Suppose I have a1,a2 and b1,b2 such that a1,b1 belong to one data set and
  32. a2,b2 belong to another data set and I want compare the corresponding
  33. data items by plotting them together. So we have
  34.  
  35. |
  36. |
  37. |
  38. -------------------
  39.   a1 a2       b1 b2
  40.  
  41. It would be nice if a1,b1 had one pattern and a2,b2 had another pattern in
  42. their respective bars.
  43.  
  44.  
  45. Here is another plotting problem that I have. I have two data sets.
  46.  
  47. Data set 1
  48.  
  49. 52Y 10
  50. 63K 12.3
  51. 54Z 8.4
  52. .....
  53. .....
  54. .....
  55.  
  56.  
  57. Data set 2
  58.  
  59. 12R 3.4
  60. 13L 4.3
  61. 25P 8.9
  62. .......
  63. .......
  64. .......
  65.  
  66.  
  67. My plot should look approximately like,
  68.  
  69.       Data Set 1           Data Set 2
  70. |
  71. |     .'.                   '`
  72. |    /   .                 '  ` 
  73. |  .'     .         ......'    \
  74. |                               .                              
  75. |
  76. |         |<---x--->|
  77. ------------------------------------------
  78.   52Y 63K 54Z ..       12R 13L 25P ..
  79.  
  80.  
  81. Is it possible to adjust "x" in the above plot?  Is it possible 
  82. to draw the same plot such that, the graph for data set 2 is below 
  83. (instead of being adjacent as shown above) the graph for data set 1 ?
  84. How can I adjust the separation then ? I suppose all gnuplot has all
  85. these capabilities. Its just that I don't seem to be able to find the
  86. right command. 
  87.  
  88. Vamsee
  89.