Morning, all,
I tried to plot stackplot with several lines. Basically,
I hope to get something like when you use !P.MULTI=[0,1,2]
to plot the figure one after another. But I do not want
to plot the XAXIS between the figures. Can I hide the axis
by some way? Here is my "silly" try:
----------------------------------------------------
;locd B-W color table
loadct,0
;plot the axis in white. I use position to tell IDL
;to put the first figure in the top
plot,x,y1,pos=[0,0.5,1.0,1.0],xticks=5,/noerase, $
color=255,xstyle=1,ystyle=1
;over plot the first line
oplot,x,y1,color=0
;plot the second line repeatly except changing the
;position
plot,x,y2,pos=[0,0.4,1.0,0.9],xticks=5,/noerase, $
color=255,xstyle=1,ystyle=1
oplot,x,y1,color=0
;plot the frame
plots,[0,0],[0,1.0],/norm
plots,[1,1],[0,1.0],/norm
plots,[0,1],[0,0],/norm
plots,[0,1],[1,1],/norm
----------------------------------------------------
Though I almost got what I want, it is painful! Any better
way to do this?
Thanks,
Caitouer
|