Re: plotting problem

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue Jan 22 2013 - 15:25:36 MST

Hi,

"landscape" mode only works for PS and PDF output, and not X11 output.

You are choosing a map that is going to be very long and skinny, so even with the maximization, it's going to be hard to see.
You may want to set res@mpMin/MaxLonF to values other than -180 and 180, which is the default.

You didn't say what lat/lon range "p3" has, but I'm assuming it has lat/lon coordinate arrays attached to it? If so, you could use those values to set the map limits:

   res@mpMinLonF = min(p3&lon) ; May need to change to get correct "lon" dimension name.
   res@mpMaxLonF = max(p3&lon)

--Mary

On Jan 21, 2013, at 11:45 AM, Ioana Colfescu wrote:

> Hi,
>
> I want to make a plot that zooms over a certain region of the map and also get the plot in the biggest size possible. I use gsnMaximize but it doesn't seem to work unless I plot all map.
> When I use the below code I get the box only plotted on a global map and all is very small
> Could someone please tell me how to I get a plot that is zooming in over a region and is in the biggest size possible ( on the plotting area ) ? and also what error I'm doing that gsnMaximize doesn't work ?
> The code I'm using is
>
> wks = gsn_open_wks("x11","proj") ; open a ps file
> gsn_define_colormap(wks,"BlueRed")
>
> res = True
> res@cnInfoLabelOn = False ; turn off cn info label
> res@gsnMaximize = True
> res@gsnPaperOrientation = "Landscape"
>
> res@mpMinLatF = -20. ; set the minimum latitude
> res@mpMaxLatF = 20. ; set the maximum latitude
> .
>
> ; res@tiMainString = "Trend over Atlantic " ; add a title
> plot = gsn_csm_contour_map_ce(wks,p3(:,:,0),res)
>
> Thanks,
>
> Ioana
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Jan 22 15:25:46 2013

This archive was generated by hypermail 2.1.8 : Wed Jan 23 2013 - 20:38:31 MST