Re: oplot and oploterror, later fails to work [message #72049] |
Tue, 03 August 2010 10:55 |
Fermiona Fermiona
Messages: 17 Registered: June 2010
|
Junior Member |
|
|
Yes, it works.. I thought it didn't work because the yrange for the
first group is way far away from that of the second group, that's why
the errors bars were too small that I thought the code didn't work.
Thank you for the help
|
|
|
Re: oplot and oploterror, later fails to work [message #72052 is a reply to message #72049] |
Tue, 03 August 2010 08:44  |
wlandsman
Messages: 743 Registered: June 2000
|
Senior Member |
|
|
I tried your plotting code after creating some simple variables and it
seems to plot OK (output on http://idlastro.gsfc.nasa.gov/ftp/landsman/idl.png
. --Wayne
a3 = indgen(5)
a0 = a3+1.2
a6 = replicate(0.5,5)
a4 = a6/1.5
a7 = a6/2.
a5 = a6
a1 = a0 /2.
On Aug 2, 6:49 pm, Fermiona Fermiona <fermion...@gmail.com> wrote:
> Hello,
>
> I am trying to plot multiple groups of data points (along with error
> bars) in one plot. When I try to use plot (for first group),
> oploterror (for the error bars for first group), then oplot (for next
> group), then oploterror (for error bars for next group), the data are
> plotted but the vertical error bars fail to show up.. I wonder what
> I'm doing wrong.
>
> ; First group
> plot, A3, A0, psym=6
> oploterror, A3, A0, A6, A4, psym=3,errstyle =1, /HIBAR
> oploterror, A3, A0, A7, A4, psym=3,errstyle =1, /LOBAR
>
> ; Second group
> oplot,A3, A1,psym =2
> oploterror, A3, A1, A6, A5, psym=3,errstyle =1, /HIBAR
> oploterror, A3, A1, A7, A5, psym=3,errstyle =1, /LOBAR
>
> where An is an array of data elements
>
> Thank you
|
|
|