How to use ploterror procedure in idl with no xerror bars? [message #94745] |
Thu, 21 September 2017 10:47  |
Sonu Tabitha
Messages: 29 Registered: April 2016
|
Junior Member |
|
|
I would like to use the ploterror procedure in idl for my plots. I don't have any x error bars. I used the following command
ploterror, x , y, yerr,type=3,psym=3
But this is giving me horizontal error bars. I tried giving it as
ploterror, x , y, xerr,yerr,type=3,psym=3
with xerr=0. But this gave me absurd output. Kindly help me in this regard.
|
|
|
Re: How to use ploterror procedure in idl with no xerror bars? [message #94747 is a reply to message #94745] |
Fri, 22 September 2017 02:57   |
Markus Schmassmann
Messages: 129 Registered: April 2016
|
Senior Member |
|
|
On 09/21/2017 07:47 PM, Meegle_Jade wrote:
> I would like to use the ploterror procedure in idl for my plots. I
> don't have any x error bars. I used the following command
>
> ploterror, x , y, yerr,type=3,psym=3
>
> But this is giving me horizontal error bars. I tried giving it as
>
> ploterror, x , y, xerr,yerr,type=3,psym=3
>
> with xerr=0. But this gave me absurd output. Kindly help me in this
> regard.
; TYPE = type of plot produced. The possible types are:
; TYPE = 0 : X Linear - Y Linear (default)
; TYPE = 1 : X Linear - Y Log
; TYPE = 2 : X Log - Y Linear
; TYPE = 3 : X Log - Y Log
could this be the problem?
If not, I don't understand why the first doesn't work. On the second try
xerr = make_array(size=size(x))
If you can't make it work consider using
plot, x, y, psym=3,/xlog,/ylog
errplot, x, y-yerr, y+yerr
or
cgPlot, x,y,ERR_YLow=yerr, ERR_YHigh=yerr,PSym=3,/xlog,/ylog
good Luck, Markus
|
|
|
Re: How to use ploterror procedure in idl with no xerror bars? [message #94748 is a reply to message #94745] |
Fri, 22 September 2017 06:34  |
wlandsman
Messages: 743 Registered: June 2000
|
Senior Member |
|
|
On Thursday, September 21, 2017 at 1:47:20 PM UTC-4, Meegle_Jade wrote:
> I would like to use the ploterror procedure in idl for my plots. I don't have any x error bars. I used the following command
> ploterror, x , y, yerr,type=3,psym=3
> But this is giving me horizontal error bars. I tried giving it as
What size are your horizontal error bars? You are not supplying an xerr vector, so what it is using for the x error bar size?
Are you sure you are not seeing the "hats" that ploterror adds by default to the top and bottom of each symbol? How does the plot look without "hats"?
ploterror,x,y,yerr,type=3,psym=3,/nohat
Wayne
|
|
|