cgplotting points with error bars [message #87405] |
Fri, 31 January 2014 10:16  |
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   |
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  |
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
|
|
|