Loading ...
Sorry, an error occurred while loading the content.

procbar, categories, get rid of bottom bar

Expand Messages
  • Mike Karisok
    Hi I want to draw horizontal bars with several milestones on it. Actually everything works fine, but I always have a bar at the bottom of the x axis. I tried
    Message 1 of 2 , Mar 5, 2007
    • 0 Attachment
      Hi
      I want to draw horizontal bars with several milestones on it.
      Actually everything works fine, but I always have a bar at the bottom
      of the x axis.
      I tried since hours to get rid of it but with no success.
      Any help is very much appreciated.
       
      Kind regards,
      Mike
       
      #proc settings
       units: cm
      #endproc 
      #proc getdata
       fieldnameheader: yes
       data:
       a b       c      d      e       f        
       1 "item"    01/03/2007 31/12/2008 01/01/0001  ""       
       2 "item"    01/03/2007 31/12/2008 01/05/2007  "M1"      
       2 "item"    01/03/2007 31/12/2008 01/08/2007  "M2"      
       3 "item"     01/03/2007 31/12/2008 01/06/2008  "M3"      
       3 "item"      01/03/2007 31/12/2008 01/04/2007  "Planned1"    
       3 "item"      01/03/2007 31/12/2008 01/07/2007  "Planned2"    
       4 "item"    01/03/2007 31/12/2008 01/01/0001  ""    
      #endproc  
      #proc areadef
         title: my Title
         rectangle: 3 2 12 12
         xscaletype: date dd/mm/yyyy
         xrange: 01/03/2007 31/12/2008
         yautorange: categories
         ycategories:
         1
         2
         3
      #endproc    
      #proc bars
         color: gray(0.8)
         barwidth: 0.3
         outline: no
         horizontalbars: yes
         segmentfields: c d
      #endproc   
      #proc yaxis
         stubs: categories
         labeldetails: adjust=-0.4,0
      #endproc   
      #proc scatterplot
         xfield: e
         yfield: a
         labelfield: f offset=0.2
         textdetails: adjust=0,0.3
         symbol: shape=triangle style=filled fillcolor=grey(0.01) radius=0.15
      #endproc 
      // Must be invoked again in order to draw the legend
      #proc scatterplot
        xfield: e
        yfield: a
        symbol: shape=triangle style=filled fillcolor=grey(0.01) radius=0.15
        legendlabel: Milestone
      #endproc   
      #proc legend
         location: 4 1
         format: accross
      #endproc   
       
       


      Don't be flakey. Get Yahoo! Mail for Mobile and
      always stay connected to friends.
    • Stephen C. Grubb
      Mike, add the locfield statement eg. #proc bars color: gray(0.8) barwidth: 0.3 outline: no horizontalbars: yes segmentfields: c d locfield: 1 #endproc this
      Message 2 of 2 , Apr 18, 2007
      • 0 Attachment
        Mike, add the 'locfield' statement eg.

        #proc bars
        color: gray(0.8)
        barwidth: 0.3
        outline: no
        horizontalbars: yes
        segmentfields: c d
        locfield: 1
        #endproc

        this assigns bars to positions based on your first data field.

        without this, it defaults to dropping bars into the first 3 positions
        including 0.

        -Steve


        On Mon, 5 Mar 2007, Mike Karisok wrote:

        > Hi
        > I want to draw horizontal bars with several milestones on it.
        > Actually everything works fine, but I always have a bar at the bottom
        > of the x axis.
        > I tried since hours to get rid of it but with no success.
        > Any help is very much appreciated.
        >
        > Kind regards,
        > Mike
        >
        > #proc settings
        > units: cm
        > #endproc
        > #proc getdata
        > fieldnameheader: yes
        > data:
        > a b c d e f
        > 1 "item" 01/03/2007 31/12/2008 01/01/0001 ""
        > 2 "item" 01/03/2007 31/12/2008 01/05/2007 "M1"
        > 2 "item" 01/03/2007 31/12/2008 01/08/2007 "M2"
        > 3 "item" 01/03/2007 31/12/2008 01/06/2008 "M3"
        > 3 "item" 01/03/2007 31/12/2008 01/04/2007 "Planned1"
        > 3 "item" 01/03/2007 31/12/2008 01/07/2007 "Planned2"
        > 4 "item" 01/03/2007 31/12/2008 01/01/0001 ""
        > #endproc
        > #proc areadef
        > title: my Title
        > rectangle: 3 2 12 12
        > xscaletype: date dd/mm/yyyy
        > xrange: 01/03/2007 31/12/2008
        > yautorange: categories
        > ycategories:
        > 1
        > 2
        > 3
        > #endproc
        > #proc bars
        > color: gray(0.8)
        > barwidth: 0.3
        > outline: no
        > horizontalbars: yes
        > segmentfields: c d
        > #endproc
        > #proc yaxis
        > stubs: categories
        > labeldetails: adjust=-0.4,0
        > #endproc
        > #proc scatterplot
        > xfield: e
        > yfield: a
        > labelfield: f offset=0.2
        > textdetails: adjust=0,0.3
        > symbol: shape=triangle style=filled fillcolor=grey(0.01) radius=0.15
        > #endproc
        > // Must be invoked again in order to draw the legend
        > #proc scatterplot
        > xfield: e
        > yfield: a
        > symbol: shape=triangle style=filled fillcolor=grey(0.01) radius=0.15
        > legendlabel: Milestone
        > #endproc
        > #proc legend
        > location: 4 1
        > format: accross
        > #endproc
        >
        >
        >
        >
        > ---------------------------------
        > Don't be flakey. Get Yahoo! Mail for Mobile and
        > always stay connected to friends.


        Stephen C. Grubb scg@... x-6633
        Scientific Software Engineer, The Jackson Laboratory
        600 Main Street Bar Harbor, Maine 04609 USA
      Your message has been successfully submitted and would be delivered to recipients shortly.