[ncl-talk] Just a note on markid (adding names, symbols to plots)

Barry Lynn barry.h.lynn at gmail.com
Sun Aug 9 03:23:54 MDT 2020


Hi:

I didn't see a recent note on this, but it still may confuse at least some
people.

When you want to plot multiple frames on a page, with city names and
markers, you need to set a unique marker set for each frame.

Here is how you do it.

  text_name = new((/n_plots,ncities/),graphic)   ; Create array to hold
text objects

  mark_name := new((/n_plots,ncities/),graphic)   ; Create array to hold
marker objects


where n_plots is the number of frames, maps on a page.


  text_name(i_plot,:) = gsn_add_polymarker(wks,plot_ov,lon,lat,mkres)

  mark_name(i_plot,:)= gsn_add_text(wks,plot_ov,cities,lon,lat,txres)

-- 
Barry H. Lynn, Ph.D
Senior Associate Scientist, Lecturer,
The Institute of the Earth Science,
The Hebrew University of Jerusalem,
Givat Ram, Jerusalem 91904, Israel
Tel: 972 547 231 170
Fax: (972)-25662581

C.E.O, Weather It Is, LTD
Weather and Climate Focus
http://weather-it-is.com
Jerusalem, Israel
Local: 02 930 9525
Cell: 054 7 231 170
Int-IS: x972 2 930 9525
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200809/4dca2c47/attachment.html>


More information about the ncl-talk mailing list