[ncl-talk] Postscript output sizing

Alison Bridger alison.bridger at sjsu.edu
Mon Feb 26 14:12:25 MST 2018


Hi Adam - thanks! That did the trick! Although the "FreeAspect" line was
rejected. Byt the vpXF etc worked!

Alison

On Fri, Feb 23, 2018 at 2:10 PM, Adam Phillips <asphilli at ucar.edu> wrote:

> Hi Alison,
> In short, lots of different aspects of a plot can have an effect on the
> size of a plot. The tickmarks, the tickmark labels, the labelbar, the
> length of the titles/subtitles and their font sizes, the aspect ratio of
> the plot, whether you are setting gsnMaximize or not, etc. When it comes to
> plots over a map, NCL will not alter the aspect ratio of a plot, unless you
> tell it to:
> mpres at mpShapeMode = "FreeAspect"
> https://www.ncl.ucar.edu/Document/Graphics/Resources/mp.shtml#mpShapeMode
>
> If you set that resource to FreeAspect, you will have some finer control
> over the size of your plot by setting the various vp resources:
> mpres at vpXF = 0.2    ; starting point of plot on x-axis in NDC units
> mpres at vpWidthF = 0.6    ; width of plot in NDC units
> mpres at vpHeightF = 0.6   ; height of plot in NDC units
> mpres at vpYF = 0.8   ; starting point of plot on y-axis in NDC units.
>
> See the various examples listed here that use the mpShapeMode resource:
> https://www.ncl.ucar.edu/Applications/res_list.shtml#mpShapeMode
>
> I don't know if that is as complete an answer you were looking for or not.
> If not, let ncl-talk know.
> Adam
>
>
> On Fri, Feb 23, 2018 at 12:45 PM, Alison Bridger <alison.bridger at sjsu.edu>
> wrote:
>
>> Hi all, This is a general question...
>>
>> My output format of choice is postscript (ps). I am doing a study and
>> have written a handful of codes, and each one produces a plot of a
>> different size and shape! I am looking for some general guidelines on how
>> to fix size and shape - something along the lines of xmin/xmax/ymin/ymax -
>> all relative to an 11x8.5 sheet of paper in either landscape or portrait
>> mode.
>>
>> I had a quick look and saw something scary about - "it depends on your
>> output mode and which ncl plotting routine you use"!!! Does not sound
>> general!
>>
>> FTR, I am reading a WRF output file, extracting and plotting via commands
>> like
>> wrf_contour, wrf_map_overlays, wrf_overlays
>>
>> I've attached a play code as an example: the result comes out in a
>> rectangle! I was expecting a square...I'm plotting an array ("grad") which
>> is 71x41 ... that's probably why?
>>
>> Thanks for pointing me in the right general direction!
>>
>> Alison
>>
>> --
>>
>>                  Alison F.C. Bridger
>>                   Professor & Chair
>>
>>     Department of Meteorology and Climate Science
>>
>>     San Jose State University      tel  408.924.5206 <(408)%20924-5206>
>>     One Washington Square          fax  408.924.5191 <(408)%20924-5191>
>>     San Jose, CA 95192-0104
>>
>>              email:   Alison.Bridger at sjsu.edu
>>
>>        *Global CO2 levels...400 ppm and still rising...happy?*
>>
>>
>>                  www.sjsu.edu/meteorology <http://www.met.sjsu.edu>
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>
>
> --
> Adam Phillips
> Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR
> www.cgd.ucar.edu/staff/asphilli/   303-497-1726 <(303)%20497-1726>
>
> <http://www.cgd.ucar.edu/staff/asphilli>
>



-- 

                 Alison F.C. Bridger
                  Professor & Chair

    Department of Meteorology and Climate Science

    San Jose State University      tel  408.924.5206
    One Washington Square          fax  408.924.5191
    San Jose, CA 95192-0104

             email:   Alison.Bridger at sjsu.edu

       *Global CO2 levels...400 ppm and still rising...happy?*


                 www.sjsu.edu/meteorology <http://www.met.sjsu.edu>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180226/ba7bf949/attachment.html>


More information about the ncl-talk mailing list