[ncl-talk] axis-Y

Vanúcia Schumacher vanucia-schumacher at hotmail.com
Wed Aug 7 13:31:11 MDT 2019


Hi


I am trying to plot according to the example

unique_10_thicker.ncl.

However, my picture (attached) is getting the Y axis values overlapping.

 How can I fix it?

Thanks


...

  res at vpWidthF              = 0.76       ; change aspect ratio of plot
  res at vpHeightF             = 0.25

  res at xyLineColor           = "red"
  res at xyLineThicknessF      = 5.


  res at tfPolyDrawOrder       = "PreDraw"    ; Draw any attached primitives


  res at tmXBOn                = False
  res at tmYLLabelFontHeightF  = 0.01      ; resize tick labels
  res at tmYLLabelFontColor    = res at xyLineColor

;---For higher quality large images
  res at tiYAxisFontThicknessF  = 6.
  res at tmXBMajorThicknessF    = 6.
  res at tmXBMinorThicknessF    = 6.
  res at tmYLLabelFontThicknessF= 6.
  res at tmBorderThicknessF     = 6.

;;;;; plot 1


  plot(0) = gsn_csm_xy(wks,time,y1,res)

;;;;; plot 2

  res at tmXBOn               = False
  res at tmXTOn               = False
  res at xyLineColor          = "blue"
  res at tmYLLabelsOn         = False
  res at tmYRLabelFontHeightF = 0.01      ; resize tick labels
  res at tmYLLabelsOn         = True
  res at tiYAxisFontColor     = res at xyLineColor
  res at tmYLLabelFontColor   = res at xyLineColor
  plot(1) = gsn_csm_xy(wks,time,y2,res)

;;;;; plot 3

  res at tmXBOn               = True
  res at tmXBMode             = "Explicit"
  res at tmXBValues           = xindexc
  res at tmXBLabels           = xlabelc
  res at tiXAxisString        = "Time"
  res at xyLineColor          = "forestgreen"
  res at tiYAxisFontColor     = res at xyLineColor
  res at tmYLLabelFontColor   = res at xyLineColor
  res at tmYLLabelsOn         = True
  plot(2) = gsn_csm_xy(wks,time,y3,res)



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190807/791e9a73/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ex.png
Type: image/png
Size: 91213 bytes
Desc: ex.png
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190807/791e9a73/attachment.png>


More information about the ncl-talk mailing list