Re: plotting x-y error bars in IDL [message #86883 is a reply to message #86833] |
Tue, 10 December 2013 02:05   |
atmospheric physics
Messages: 121 Registered: June 2010
|
Senior Member |
|
|
Hello,
As suggested, I replaced the following lines in my code, I don't see even lat-lon points that I was able to see earlier. Now, I see only a black grid map with lat-lon axes. I still don't understand why to invert the data and why no display of points or error bars???
xy = map -> Inverse(xlon,ylat)
lon = REFORM(xy[0,*]) & lat = REFORM(xy[1,*])
cgPlotS, xlon, ylat, PSYM=16, SYMSIZE=1.2, MAP=map, COLOR='red'
; Draw the error bars in the signal Y
yhigh = map -> Inverse(y_higherr, ylat)
ylow = map -> Inverse(y_lowerr, ylat)
lon_high = REFORM(yhigh[0,*])
lon_low = REFORM(ylow[0,*])
cgErrPlot, lon, lon_high, lon_low, COLOR='blu5',Thick=thick
; Draw the error bars in the signal X
xhigh = map -> Inverse(xlon, x_higherr)
xlow = map -> Inverse(xlon, x_lowerr)
lat_high = REFORM(xhigh[0,*])
lat_low = REFORM(xlow[0,*])
cgErrPlot, lat, lat_high, lat_low, COLOR='blu5',Thick=thick, /Horizontal
Thanks in advance.
|
|
|