[ncl-talk] How to add reference lines in gsn_csm_contour

Dennis Shea shea at ucar.edu
Tue Sep 8 07:30:56 MDT 2015


Please see the 'Examples' link

Under 'Plot Techniques' .... Click 'Polylines'

====

  res at gsnDraw   = False
  res at gsnFrame = False
  :
  plot = gsn_csm_contour(wks, x, res)

  gsres = True
  gsres at gsLineDashPattern = 1   ; whatever

  plot@$unique_string("dum")$ =  gsn_add_polyline(wks,plt
,(/xbot,xtop/) \,(/ybot,ytop/) ,plres)

  plot@$unique_string("dum")$  = gsn_add_polyline(wks, plot, (/  0.0,
0.0/),(/ 0.0  , 0.5  /),gsres)

   draw(plot)
  frame(wks)


On Tue, Sep 8, 2015 at 6:42 AM, Xi Chang <xi.chang01 at gmail.com> wrote:
> Hallo I have a plot using gsn_csm_contour function.
> ' wondering how to add 2 vertical lines in x coordinate?
>
> Thanks
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>


More information about the ncl-talk mailing list