Hi,
Thanks for providing a script.
When you call gsn_add_polyline, it gives you one line per set of points that you pass to it.
If you want 9 distinct lines, you need to call gsn_add_polyline 9 times, and give it the list of points for each line.
I wasn't sure what the points for the 9 lines you want are, so I took your array of 11 elements, and drew a line between each pair of points. I changed the color for each line so you can see the change.
Otherwise, it looks like you are just drawing one continuous line. I also added markers, so you could see the beginning of each new line.
See the attached modified version of your script.
--Mary
On Oct 8, 2012, at 6:01 AM, nlcheng wrote:
> I upload the scripts. I want to produce a map with 9 undefined dotted lines on the China map.
> you can see:
> yp(:) = (/24.183,21.700,18.421,15.000,11.486,7.500,3.850,4.028,6.801,11.892,15.789/)
> xp(:) = (/122.887,121.950,119.737,119.125,118.780,115.909,112.267,108.636,108.140,110.375,109.490/)
>
> i want it to show 9 dotted lines not 11 or other number. I delete some point but it still does not turn out 9 lines.
> how can i write the command to control it ?
> hope for your help
>
>
> <china.ncl>_______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
This archive was generated by hypermail 2.1.8 : Mon Oct 08 2012 - 15:54:16 MDT