Hello there,
I have been fruitlessly trying to implement an IDL code to
create errorbars in both x and y directions. However, my data
on the ordinate (y axis) is at a very different range than the abcissae
(x axis). For example, xrange=[0.75,1.25]; yrange=[0.01,0.05]. The
following procedure, obviously wrong, is able to produce the
correct x,y mapping but, alas, the errorbars do not correspond to
their respective x and y scales.
Can a kind soul help me in this adventure? Oh, I would
appreciate a non-widget solution. Both, pwidget of RSI and
pubplot of Joel Offenberg were unable to run on my Solaris
machine because of some problem. And, no time to spare...
Regards
Safwan SHAH
==========================================================
|
| |
0.05 | -------
| |
| | |
| ---
| |
0.00 |----------------
0.75 1.25
============================================================ =
pro errbar, x, y, xerrorbar, yerrorbar
xmin=min(x) & xmax=max(x)
ymin=min(y) & ymax=max(y)
xytitle=['C1', 'C2', 'C3', 'C4','C5','C6','C7','C8','C9','C10']
plot, x, y,/nodata, xrange=[xmin,xmax],yrange=[ymin,ymax]
for i=0,9 do begin ;go thru each point and create unique symbol
;symbol is a cross
xx=[0,0,0,1,-1]*xerrbar(i) ;x-coordinates
yy=[1,-1,0,0,0]*yerrbar(i) ;y-coordinates
usersym, xx,yy
plots, x(i),y(i),psym=8
xyouts, x(i), y(i), xytitle(i)
endfor
ang=2*!pi*findgen(49)/49
xarr=psize*cos(ang) & yarr=psize*sin(ang)
usersym,xarr, yarr
oplot, x, y, psym=8,symsize=0.5
end
============================================================ ====
BioServe Space Technologies
Aerospace Enginering Sciences
University of Colorado at Boulder
============================================================ ====
--
=========================== Department of Aerospace Engineering Sciences
BioServe Space Technologies University of Colorado at Boulder
=========================== E-Mail: shah@spot.colorado.edu
|