<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>You could use "gxeps" to convert the metafile to encapsulated
postscript. This differs from "gxps" in that it trims the excess white
space. <br>
<br>
Also, like Ivan said,&nbsp; ImageMagick software is really useful.&nbsp; The
"convert" command can operate on various file formats.&nbsp; Among its many
options is a "-trim" option to remove excess white space.&nbsp; You probably
would need to use a few other option, though, to control the resolution
and quality of the image. ("+antialias", "-density", "-resize" are few
that I use often on grads images.)<br>
<br>
MJ<br>
<br>
<br>
</tt>Ertl, John C CIV 63134 wrote:
<blockquote cite="midAF2E4A48-E87E-4F80-935A-E976D6A79D4E@mimectl"
 type="cite">
  <div id="idOWAReplyText61108" dir="ltr">
  <div dir="ltr"><font color="#000000" face="Arial" size="2"><font
 face="Times New Roman" size="2">Classification: UNCLASSIFIED</font> <br>
  <font face="Times New Roman" size="2">Caveat (s):&nbsp;FOUO</font></font></div>
  <div dir="ltr">&nbsp;</div>
  <div dir="ltr"><font color="#000000" face="Arial" size="2"><font
 face="Times New Roman">One more problem for today....</font></font></div>
  <div dir="ltr">&nbsp;</div>
  <div dir="ltr"><font color="#000000" face="Arial" size="2"><font
 face="Times New Roman">I have gotten the plots to look great but I
have bunch of white space around the plot.&nbsp; Is there a way for GrADS to
produce an image that does not have all of the white space around it.&nbsp;
I have to make the image about 3in by 3in and the extra white space
makes the plot even harder to read.&nbsp; I might be able to do this post
process but I would rather get it in GrADS.&nbsp; I was thinking maybe
setting the plot size to be the same size as the page size but....any
ideas.</font></font></div>
  <div dir="ltr">&nbsp;</div>
  <div dir="ltr">&nbsp;</div>
  <div dir="ltr"><font size="2">Thanks again for the great help</font></div>
  </div>
  <div id="idSignature43714">
  <div><font color="#000000" face="Arial" size="2">&nbsp;</font></div>
  <div><font color="#000000" face="Arial" size="2">John Ertl</font></div>
  <div><font face="Arial" size="2">Meteorologist</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">FNMOC</font></div>
  <div><font face="Arial" size="2">7 Grace Hopper Ave.</font></div>
  <div><font face="Arial" size="2">Monterey, CA 93943</font></div>
  <div><font face="Arial" size="2">(831) 656-5704</font></div>
  <div><font face="Arial" size="2"><a href="mailto:john.ertl@navy.mil"
 target="_blank">john.ertl@navy.mil</a></font></div>
  <div>&nbsp;</div>
  <div>
  <div><font color="#000000" face="Arial" size="2"><font
 face="Times New Roman" size="2">Classification: UNCLASSIFIED</font> <br>
  <font face="Times New Roman" size="2">Caveat (s): FOUO</font></font></div>
  </div>
  </div>
  <div dir="ltr"><br>
  <hr tabindex="-1">
  <font face="Tahoma" size="2"><b>From:</b> Mary Jo Nath<br>
  <b>Sent:</b> Wed 8/29/2007 8:38 AM<br>
  <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:GRADSUSR@LIST.CINECA.IT">GRADSUSR@LIST.CINECA.IT</a><br>
  <b>Subject:</b> Re: adding text to images<br>
  </font><br>
  </div>
  <div>
  <pre style="">John,

I'd use a grads script to return the XY coordinates of the sides of the
plot using "q gxinfo", then use "draw string" to plot labels relative to
the 4 corners.  Include something like this to  get the X and Y values
of the sides of the plots:

'q gxinfo'
xvalues=sublin(result,3)
yvalues=sublin(result,4)
* xl = plot starts xl inches from left
* xr = plot ends xr inches from left
* yb = plot starts yb inches from bottom
* yt = plot ends yt inches from bottom
xl=subwrd(xvalues,4)
xr=subwrd(xvalues,6)
yb=subwrd(yvalues,4)
yt=subwrd(yvalues,6)


The lower left corner of the plot would be at "xl" "yb". Upper left at
"xl" "yt". Upper right "xr" "yt". Lower right "xr" "yb".

MJ

Ertl, John C CIV 63134 wrote:
&gt; All,
&gt;
&gt; I have a plot that looks great except that when I change the lat/lon
&gt; of the plot area the image resizes and some of the labels that I have
&gt; placed (using draw string) in the corners of the image now no longer
&gt; draw in the correct place (I guess they draw in the same place but the
&gt; image has changed its dimensions.  How can I have a label show up in
&gt; the plotted area and stay in the corner even when the plotted area
&gt; changes.
&gt;
&gt; Thanks
&gt;
&gt; John Ertl
  </pre>
  </div>
</blockquote>
</body>
</html>