Re: Text from code onto plot and map background

From: <brownrig_at_nyahnyahspammersnyahnyah>
Date: Fri Sep 27 2013 - 07:50:56 MDT

Hi Melissa,

If your first question is how to place arbitrary text on a plot, then
take a peek at gsn_text_ndc:

Note that text is positioned via NDC coordinates. You might also want
to check out the gsFont* and gsTest* resources at:

In particular, as you want right-edge positioning, it would seem like
gsTextJustification might be handy in getting the text positioned

On the second question, if you want the plot view to be only your area
of interest, check out the resource mpLimitMode:

it seems like one of the settings "LatLon" or "corners" is what you

I hope that helps...

On Fri, 27 Sep 2013 09:45:17 +0000
  Melissa Lazenby <> wrote:
> Hi All
> I have got my required plot but now just need to do some final
> I want to add text to the top right of my plot and can do that but
>want this text to come from worked out variables within my code for
>example I have calculated a regression line and want to print out the
>slope and mean latitude to the top right handside of the plot and I
>am sure it is quite simple but cannot seem to find out how to do
>this. Any advice on how to do this will be greatly appreciated.
> I also wanted to ask about having map boundaries in the background
>as I want to see the southern Africa boader on my image. I have tried
>using gsn_contour_map to display the map in the background but then
>it just plots the entire globe and have the contours just over my
>specified region.
> Any help on these two issues would be greatly appreciated.
> Kind Regards
> Melissa

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Fri Sep 27 07:51:05 2013

This archive was generated by hypermail 2.1.8 : Tue Oct 01 2013 - 14:41:43 MDT