comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » plotting x-y error bars in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: plotting x-y error bars in IDL [message #86871 is a reply to message #86862] Mon, 09 December 2013 09:58 Go to previous messageGo to previous message
atmospheric physics is currently offline  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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Error Bars Using Coyote Graphics
Next Topic: object graphics, exploding axis text, how to fix by explicitly setting char_dimens?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:03:40 PDT 2025

Total time taken to generate the page: 0.00468 seconds