Re: Can't force landscape orientation

From: Bob Tomas (tomas AT cgd.ucar.edu)
Date: Wed Jun 29 2005 - 10:17:29 MDT

  • Next message: Andrea Hahmann: "Problem with bar plots"

    Thanks to Adam for his help in figuring this out.

    Essentially, I was doing operations in the "wrong" order.

    I was adding text and then paneling the individual plots.

    What I needed to do was to:

    (1) Set this panel resource

             resP@gsnFrame = False

    (2) Panel the plots together

            gsn_panel(wks,plot,(/2,4/),resP)

    (3) Add the text

       drawNDCGrid(wks)
       xres = True
       xres@txFontHeightF = 0.012
       gsn_text_ndc(wks,"EXPLATIVE!",0.505,0.34,xres)

    (4) Frame

       frame(wks)

    Easy as pie!

    Bob

    -------------------------------------------------------------
    Robert A. Tomas
    National Center for Atmospheric Research
    Climate and Global Dynamics Division - Paleoclimatology
    1850 Table Mesa Drive
    Boulder, CO 80305-3000
    e-mail: tomas@ucar.edu tel: 303-497-1342 fax: 303-497-1348

    On Wed, 29 Jun 2005, Bob Tomas wrote:

    > I am making a panel plot that I want to have a landscape orientation and
    > I am able to do this if I plot only the individual diagrams and specify:
    >
    >
    > resP = True
    > resP@gsnMaximize = True
    > resP@gsnPaperOrientation = "landscape"
    > resP@gsnPanelLabelBar = True
    > resP@lbLabelAutoStride = True
    > gsn_panel(wks,plot,(/2,4/),resP)
    >
    >
    > But when I add text using, for example,
    >
    > xres = True
    > xres@txFontHeightF = 0.012
    > gsn_text_ndc(wks,"SHIT!",0.505,0.34,xres)
    >
    > The diagrams are placed on the paper with the portrait orientation.
    >
    > Does anyone have suggestions?
    >
    > Thanks.
    >
    > Bob
    >
    > -------------------------------------------------------------
    > Robert A. Tomas
    > National Center for Atmospheric Research
    > Climate and Global Dynamics Division - Paleoclimatology
    > 1850 Table Mesa Drive
    > Boulder, CO 80305-3000
    > e-mail: tomas@ucar.edu tel: 303-497-1342 fax: 303-497-1348
    > _______________________________________________
    > ncl-talk mailing list
    > ncl-talk@ucar.edu
    > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
    >
    _______________________________________________
    ncl-talk mailing list
    ncl-talk@ucar.edu
    http://mailman.ucar.edu/mailman/listinfo/ncl-talk



    This archive was generated by hypermail 2b29 : Wed Jun 29 2005 - 10:37:38 MDT