Plot Sideways not Upright

From: Helen Parish <hparish_at_nyahnyahspammersnyahnyah>
Date: Tue Jul 13 2010 - 07:05:53 MDT

I cant figure out why my panel plot is oriented sideways instead of
upright. Does anyone know what I need to do to get my plot turn
upright ?.

I include below the plotting commands I am using for an individual
panel within the plot, followed by the commands which apply to the
panel as a whole.

Thanks,
Helen.

res = True

      res@gsnLeftString = ""
      res@gsnCenterString = "Year "+ nyear
      res@gsnRightString = ""

   res@cnFillOn = True
   res@lbLabelAutoStride = True
   res@gsnMaximize = True ; if [ps, eps, pdf] make large
   res@gsnSpreadColors = True ; span color map
   res@cnLineLabelsOn = False ; Turn off contour line labels
   res@cnInfoLabelOn = False ; Turn off informational label
  if (nf2 .le. 8) then
   res@tmXBLabelsOn = False ; do not draw bottom
labels
   res@tmXBOn = False ; no bottom tickmarks
   res@lbLabelBarOn = False ; turn off individual colour bars
      res@tiYAxisString = "Pressure (mbar)"
  end if

   res@trYReverse = True

   res@cnLevelSelectionMode = "ManualLevels" ; manually set the
contour levels with the following 3 resources
   res@cnMinLevelValF = -25.0 ; set the minimum
contour level
   res@cnMaxLevelValF = 65.0 ; set the maximum
contour level
   res@cnLevelSpacingF = 5.0 ; set the interval
between contours

  if (nf2 .ge. 9) then
   res@tmXBOn = True ; draw bottom tickmarks
   res@tmXBLabelsOn = True ; draw bottom labels
   res@tiXAxisString = "Latitude (degrees)"
      res@tiYAxisString = "Pressure (mbar)"
  end if
    res@gsnDraw = False
    res@gsnFrame = False

     plot(11) = gsn_csm_pres_hgt(wks, utimeavg(lev_p | 0:20,lat | :),
res ) ; (lev,lat)

;
**************************************************************************

   resP = True ; modify the panel
plot
   resP@gsnPanelTop = 0.95 ; add some space at
top
   resP@gsnPanelBottom = 0.05 ; add some space at
bottom
   resP@txString = "Zonally Averaged Zonal wind (m
s~S~-1~N~)"
   resP@gsnPanelLabelBar = True ; add common colorbar
   resP@lbLabelFontHeightF = 0.007 ; make labels smaller

         resP@lbTitleOn = True
         resP@lbTitleDirection = "Across" ; title direction
         resP@lbTitlePosition = "Right"
         resP@lbTitleString = "(m s~S~-1~N~)"
         resP@lbTitleFontHeightF = 0.011
         resP@lbTitleOffsetF = -0.02

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

end

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Jul 13 07:06:28 2010

This archive was generated by hypermail 2.1.8 : Mon Jul 19 2010 - 09:39:01 MDT