How to add straight line on xyplot?

From: louis Vonder <appopson_at_nyahnyahspammersnyahnyah>
Date: Fri Nov 04 2011 - 10:06:05 MDT

Dear NCL-users,
I have a simple xy_plot which appear in blue below.
I am trying to overlay a first bisectrix on this graph but I am very confuse.
There is any simple way to do it?
Thanks for your help
Louis

; ***********************************************load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl";************************************************begin;************************************************; read in data;************************************************
 data = asciiread("",
 data   = asciiread("saved_data", (/2, 50/), "float") 

;************************************************ wks   = gsn_open_wks ("ps", "xy")                 
 res                   = True                      
 res@xyDashPattern = 0                res@xyMarkLineMode = "MarkLines"    res@xyMarkers      = (/6/)        res@xyMarkerColors = (/"back/)  
 plot  = gsn_csm_xy (wks, data(0,:), data(1,:), res) ; create plot

end

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Nov 4 10:06:14 2011

This archive was generated by hypermail 2.1.8 : Tue Nov 08 2011 - 15:54:50 MST