comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Stackplot without axis?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Stackplot without axis? [message #45880] Mon, 10 October 2005 08:14
caitouer is currently offline  caitouer
Messages: 21
Registered: June 2005
Junior Member
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
[Message index]
 
Read Message
Previous Topic: Set Operations on A and B
Next Topic: IDL postscript graphics

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 10:43:24 PDT 2025

Total time taken to generate the page: 1.19938 seconds