Regarding the metapost graph macros,<br><br>I'm building bargraphs with metapost and have a problem positioning<br>the labels for the bars. I need the y value in the graph space, but the x value in the &quot;outside&quot; 
<br>coordinates.&nbsp; I've crawled around the macros, but they are too deep for me!<br><br>Cheers,<br>Geoff Russell.<br><br>------------ Sample data file: totalwater.d<br>1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3 Beef<br>2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5 Dairy<br>3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13 Rice<br>
4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 16 Cotton<br><br>-------------- Metapost code<br><br>prologues:=1; warningcheck:=0;<br>input string<br>input sarith<br>input graph<br>numeric barwidth; barwidth:=0.4;<br>color lightc;<br>lightc:=5/6[red,white];<br>
<br>vardef dobar (expr y,w,l) =<br>&nbsp;&nbsp;&nbsp;&nbsp; save p; pair p; p:=(0,Scvnum s1-0.2);<br>&nbsp;&nbsp;&nbsp;&nbsp; gfill p--(p+(w,0))--(p+(w,barwidth))-- <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (p+(0,barwidth))--cycle withcolor c[1];<br>&nbsp;&nbsp;&nbsp;&nbsp; % I NEED SOMETHING HERE TO POSITION label l 
<br>enddef;<br><br>color c[]; <br>c[1]:=blue; c[2]:=lightc; c[3]:=1/2[blue,red];<br><br>% Total Water Use <br>beginfig(1);<br>&nbsp;&nbsp;&nbsp;&nbsp; draw begingraph(2in,1.4in);<br>&nbsp;&nbsp;&nbsp;&nbsp; gdata(&quot;totalwater.d&quot;,s,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dobar (Scvnum s1,Scvnum s2,s3);
<br>&nbsp;&nbsp;&nbsp;&nbsp; ); <br>&nbsp;&nbsp;&nbsp;&nbsp; autogrid(otick.bot,);&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp; glabel.top(btex \vbox{\hbox{Total Water Use --- '000 gigalitres}} etex,OUT);<br>&nbsp;&nbsp;&nbsp;&nbsp; endgraph;<br>endfig;<br>end<br><br>