Re: plotting x-y error bars in IDL [message #86871 is a reply to message #86862] |
Mon, 09 December 2013 09:58   |
atmospheric physics
Messages: 121 Registered: June 2010
|
Senior Member |
|
|
Hello David,
I have already defined in the beginning of my IDL code as:
x_lowerr = (xlon-xstd) & x_higherr = (xlon+xstd)
y_lowerr = (ylat-ystd) & y_higherr = (ylat+ystd)
So, I have used x_lowerr, x_higherr, y_lowerr, y_higherr directly. I don't understand what is going wrong and why I am not able to see both the errorbars?
Thanks...
On Monday, December 9, 2013 2:33:16 PM UTC+1, David Fanning wrote:
> 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.")
|
|
|