To make my problem more clear, I explain it in more detail:
readcol, 'alpha-L-C.dat', t1, tr1, a1, e1
cgWindow, 'cgplot',t1,a1,xstyle=1,ystyle=1,xthick=2, ythick=2,/xlog,$
psym=16,symsize=3, color='gray', xrange=[2,600], yrange=[-1.8,1.4],$
xtitle='Days since explosion', ytitle='Spectral Index (L band/C Band)',$
WMULTI=[0,2,1]
readcol, 'alpha-C-X.dat', t1, tr1, a1, e1
cgWindow, 'cgplot',t1,a1,xstyle=1,ystyle=1,xthick=2, ythick=2,/xlog,$
psym=16,symsize=3, color='gray', xrange=[2,600], yrange=[-1.8,1.4],$
xtitle='Days since explosion', ytitle='Spectral Index (C band/X Band)',/addcmd
works fine.
But
readcol, 'alpha-L-C.dat', t1, tr1, a1, e1
cgWindow, 'cgplot',t1,a1,xstyle=1,ystyle=1,xthick=2, ythick=2,/xlog,$
psym=16,symsize=3, color='gray', xrange=[2,600], yrange=[-1.8,1.4],$
xtitle='Days since explosion', ytitle='Spectral Index (L band/C Band)',$
WMULTI=[0,2,1]
oploterror,t1,a1,tr1, e1, psym=9, symsize=3, thick=5,color='black',$
/noerase, /addcmd
readcol, 'alpha-C-X.dat', t1, tr1, a1, e1
cgWindow, 'cgplot',t1,a1,xstyle=1,ystyle=1,xthick=2, ythick=2,/xlog,$
psym=16,symsize=3, color='gray', xrange=[2,600], yrange=[-1.8,1.4],$
xtitle='Days since explosion', ytitle='Spectral Index (C band/X Band)',/addcmd
oploterror,t1,a1,tr1, e1, psym=9, symsize=3, thick=5,color='black',$
/noerase, /addcmd
does not create the second plot but cgWindow, /ListCmd shows
IDL> cgWindow, /ListCmd
0. cgplot, p1, p2, COLOR=value, PSYM=value, SYMSIZE=value, XLOG=value, XRANGE=value, XSTYLE=value, XTHICK=value, XTITLE=value, YRANGE=value, YSTYLE=value, YTHICK=value, YTITLE=value
1. oploterror, p1, p2, p3, p4, THICK=value, COLOR=value, NOERASE=value, PSYM=value, SYMSIZE=value
2. cgplot, p1, p2, COLOR=value, PSYM=value, SYMSIZE=value, XLOG=value, XRANGE=value, XSTYLE=value, XTHICK=value, XTITLE=value, YRANGE=value, YSTYLE=value, YTHICK=value, YTITLE=value
3. oploterror, p1, p2, p3, p4, THICK=value, COLOR=value, NOERASE=value, PSYM=value, SYMSIZE=value
IDL>
which means second plot should have been plotted. Also when I save the plot to ps file and try to see in gv, it says:
gv cgwindow.ps
gv: Cannot open file cgwindow.ps (No data available)
On Wednesday, February 13, 2013 3:32:28 PM UTC+5:30, poonam....@gmail.com wrote:
> Hi,
>
> I am using Coyote's cgWindow to plot my data.
>
>
>
> If I make a multiplot using
>
>
>
> cgWindow, 'cgplot',x,y,WMULTI=[0,2,1]
>
> cgWindow, 'cgplot',x1,y,/addcmd
>
>
>
> it works fine and I can also save it as a ps file from the cgwindow itself.
>
> But I need to add errors in both plot and I am using something like this:
>
>
>
> cgWindow, 'cgplot',x,y,WMULTI=[0,2,1]
>
> oploterror, x, y, delx, dely, /noerase, /addcmd
>
>
>
> cgWindow, 'cgplot',x1,y1,/addcmd
>
> oploterror, x1, y1, delx1, dely1, /noerase,/addcmd
>
>
>
> In this case after first oploterror command, the second figure does not appear.
>
> And program does not complain too. Also if I use oploterror in cgwindow, I am not able to save the as a ps file. It creates an empty plot file. If I remove oploterror command from my file, everything works fine. What is going on?
>
>
>
> Please help me. I have used it successfully in the past but am not able to use it now.
>
>
>
> Thanks
>
> Poonam
|