<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi all,<br>
<br>
to get space in top of the plot i tried to set the viewport
parameters manually in NDC.<br>
<br>
<font face="Courier New">res@vpXF = 0.2<br>
res@vpYF = 0.8<br>
res@vpHeightF = 0.3<br>
res@vpWidthF = 0.3</font><br>
<br>
As you can see in die picture, the x-coordinate is correct (0.2).<br>
But the y coordinate of the viewport isn't 0.8 (it is 0.784).<br>
Why? Is that because of my lat/lon settings for the contour plot? <br>
Any ideas?<br>
<br>
Regards.<br>
<br>
<div class="moz-cite-prefix">Am 19.02.2019 um 05:49 schrieb Rick
Brownrigg:<br>
</div>
<blockquote type="cite"
cite="mid:CAGKRhbHtbWZ0SJV2fd-O2=KeaX+Nof=KwWtXmWxpjzbKjC34Hw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div>Hi,</div>
<div><br>
</div>
<div>I have to wonder if you might have better luck trying
your annotations in NDC space. There are a number of
functions named "gsn_XXX_ndc() that operate in this
coordinate system. The function "drawNDCGrid()" can be
helpful in understanding what's going on.<br>
</div>
<div><br>
</div>
<div> <a
href="http://ncl.ucar.edu/Document/Functions/Shea_util/drawNDCGrid.shtml"
moz-do-not-send="true">http://ncl.ucar.edu/Document/Functions/Shea_util/drawNDCGrid.shtml</a></div>
<div><br>
</div>
<div>HTH...</div>
<div>Rick<br>
</div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, Feb 18, 2019 at 5:26
PM MeteoBB <<a href="mailto:info@meteo-bb.de"
moz-do-not-send="true">info@meteo-bb.de</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF"> Hi,<br>
<br>
i have a map with a countur plot and want to add above the
map a box with some infos (see the attached pic).<br>
Drawing the box is no problem, but when i turn off the
MainString, then there is no area left to draw my box,
because the <br>
map is slipping up. Yes, i could leave the MainTitle empty.
But this is not satisfying.<br>
<br>
Tried setting:<br>
<b><font face="Courier New">res@gsnBoxMargin = 0.05 </font></b><br>
<br>
seems to be a good start. But is there a resource only for a
margin-top?<br>
Or do i have to set the viewport manually with <b>vpXF</b>,<b>
vpYF</b>, <b>vpWidthF</b>, <b>vpHeightF</b>?<br>
<br>
Thanks.<br>
<br>
<br>
</div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank"
moz-do-not-send="true">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote>
</div>
</blockquote>
<br>
</body>
</html>