Re: plotting x-y error bars in IDL [message #86862 is a reply to message #86857] |
Mon, 09 December 2013 05:33   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Madhavan Bomidi writes:
>
> Hello All,
>
> Thanks for the suggestions. I have an array of latitude, longitude coordinates from GPS measurements from various stations with corresponding variability (i.e., standard deviation) over a period of operation. I am trying to plot the errorbars of latitude and longitude on a latitude-longitude axes. I am first obtaining the latitude-longitude axes and then projecting the lat-lon points. Next, I wanted to plot the errorbars corresponding to lat and lon values by using the
commands as suggested in the example of Coyote graphics. While I see the figures and the points on the lat-lon axes nicely, I don't see the error bars and x-y labels. Can you suggest where I am going wrong? Below is my IDL code for your reference...
You have:
; Draw the error bars in the signal Y
cgErrPlot, xlon, y_lowerr, y_higherr, COLOR='blu5',Thick=thick
; Draw the error bars in the signal X
cgErrPlot, ylat, x_lowerr, x_higherr, COLOR='blu5',Thick=thick, $
/Horizontal
I think these should be:
; Draw the error bars in the signal Y
cgErrPlot, xlon, xlat-y_lowerr, xlat+y_higherr, $
COLOR='blu5',Thick=thick
; Draw the error bars in the signal X
cgErrPlot, ylat, xlon-x_lowerr, xlon+x_higherr, $
COLOR='blu5',Thick=thick, /Horizontal
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|