Re: marker size

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Thu, 9 Mar 2006 14:30:36 -0700 (MST)

>
>Thank you for your kind help. Now I would like to know how I will give
>different size of markers on XY scatter plot (i.e. for some value the marker
>is bigger and for some value it is smaller size)
>Kindly help me in this regard.
>
>
>You may want to try using gsn_add_text
>see:
>http://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_add_text.shtml
>
>;--------------------------------------------
>An example code may be like the following:
>tres=True
>tres_at_txFont=22
>tres_at_txFontHeightF = 0.025 ; make smaller
>tres_at_txFontThicknessF = 2.0
>
>plot = gsn_csm_xy (wks,dep_jav,dmi_std,res) ; create plot
>do i=0,ntim-1
>txt1=gsn_add_text(wks,plot,mind(i),dep_jav(i),dmi_std(i),tres)
>end do
>;..............................................
>
>> I have plotted a scatter plot using
>
>> http://www.ncl.ucar.edu/Applications/Scripts/xy_4.ncl
>
>
>
>> Now I want to give numbers (like 1, 2, 3, 4, 5 etc) at each marker on the
>> plot.
>
>> Could you please tell me how will I do it?
>
====================================
Using Saji's example
tres=True
tres_at_txFont=22
tres_at_txFontHeightF = 0.025 ; make smaller
tres_at_txFontThicknessF = 2.0

plot = gsn_csm_xy (wks,dep_jav,dmi_std,res) ; create plot
do i=0,ntim-1
   tres_at_txFontHeightF = 0.025 ; make default size

   if (mind(i).ge. low1 .and. mind(i).lt. high1) then
        tres_at_txFontHeightF = 0.4
   end if
    if (mind(i).ge. low2 .and. mind(i).lt. high2) then
        tres_at_txFontHeightF = 0.6
   end if
     if (mind(i).ge. low3 .and. mind(i).lt. high3) then
        tres_at_txFontHeightF = 3*tres_at_txFontHeightF
   end if
 
   txt1=gsn_add_text(wks,plot,mind(i),dep_jav(i),dmi_std(i),tres)
end do

======
In a slightly different context:
   http://www.ncl.ucar.edu/Applications/polyg.shtml
See Example 8

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Mar 09 2006 - 14:30:36 MST

This archive was generated by hypermail 2.2.0 : Thu Mar 09 2006 - 17:28:14 MST