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

Home » Public Forums » archive » cgplotting points with error bars
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
cgplotting points with error bars [message #87405] Fri, 31 January 2014 10:16 Go to next message
iary is currently offline  iary
Messages: 6
Registered: January 2014
Junior Member
Dear all,

there is something I didn't get in the new version of cgplot, maybe someone can help me.
After cgerrorplot being replaced by the new "err_" options in cgplot, I suppose to draw error bars with a command like the following:

cgplot, 0.5, 0.5, psym=9, err_yhigh=1., err_ylow=1., xrange=[0.,1.], yrange=[0.,1.]

this is just a naive example, but really in my work I find often error bars that go outside the axis range.

I tried to use noclip=0 to prevent error lines plotted outside the box, but without success.

Is there a solution, or I just have to fix it by hand (i.e., modifying err_ylow or err_yhigh values when they are too large)?


thanks in advance,

iary
Re: cgplotting points with error bars [message #87406 is a reply to message #87405] Fri, 31 January 2014 10:44 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
iary writes:

> there is something I didn't get in the new version of cgplot, maybe someone can help me.
> After cgerrorplot being replaced by the new "err_" options in cgplot, I suppose to draw error bars with a command like the following:
>
> cgplot, 0.5, 0.5, psym=9, err_yhigh=1., err_ylow=1., xrange=[0.,1.], yrange=[0.,1.]
>
> this is just a naive example, but really in my work I find often error bars that go outside the axis range.
>
> I tried to use noclip=0 to prevent error lines plotted outside the box, but without success.
>
> Is there a solution, or I just have to fix it by hand (i.e., modifying err_ylow or err_yhigh values when they are too large)?

You can find an updated version of cgPlot here, with an ERR_CLIP
keyword. Set the keyword to 1 to clip the error bars to the clipping
boundary of the plot.

http://www.idlcoyote.com/programs/cgplot.pro

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.")
Re: cgplotting points with error bars [message #87430 is a reply to message #87406] Sun, 02 February 2014 06:54 Go to previous message
iary is currently offline  iary
Messages: 6
Registered: January 2014
Junior Member
On Friday, January 31, 2014 7:44:44 PM UTC+1, David Fanning wrote:
> iary writes:
>
>
>
>> there is something I didn't get in the new version of cgplot, maybe someone can help me.
>
>> After cgerrorplot being replaced by the new "err_" options in cgplot, I suppose to draw error bars with a command like the following:
>
>>
>
>> cgplot, 0.5, 0.5, psym=9, err_yhigh=1., err_ylow=1., xrange=[0.,1.], yrange=[0.,1.]
>
>>
>
>> this is just a naive example, but really in my work I find often error bars that go outside the axis range.
>
>>
>
>> I tried to use noclip=0 to prevent error lines plotted outside the box, but without success.
>
>>
>
>> Is there a solution, or I just have to fix it by hand (i.e., modifying err_ylow or err_yhigh values when they are too large)?
>
>
>
> You can find an updated version of cgPlot here, with an ERR_CLIP
>
> keyword. Set the keyword to 1 to clip the error bars to the clipping
>
> boundary of the plot.
>
>
>
> http://www.idlcoyote.com/programs/cgplot.pro
>

Thanks a lot!

iary
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Overlaying multiple plots on top of map
Next Topic: problem in finding average for every 100 points in a data set.

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

Current Time: Wed Oct 08 11:29:19 PDT 2025

Total time taken to generate the page: 0.00406 seconds