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

Home » Public Forums » archive » crazy contour
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: crazy contour [message #53832 is a reply to message #53741] Wed, 02 May 2007 12:00 Go to previous messageGo to previous message
news.qwest.net is currently offline  news.qwest.net
Messages: 137
Registered: September 2005
Senior Member
"R.G. Stockwell" <no@email.please> wrote in message
news:4638de7b$0$505$815e3792@news.qwest.net...

>
> I'll reduce the code and post it.

Note: this seems to be a problem with the ps code (I bet). Perhaps I
have a bad ps driver or something. It would be interesting to see if
anyone reproduces my problem. The thing to look for is: on the left hand
plot, at time = 2048. That column of the plot should continue the peak
of the chirp signal (i.e. the signal goes right to the edge). On my
postscript
file, the chirp ends at around time = 2000, and those final columns are
all "0", i.e. they are black. The plot on the right (using /cell) is
correct.
I see this problem in ps only, the problem does not appear if I plot to
screen.

len = 256.*8
t = findgen(len)
dt = 1

h = 10*cos(2*!pi*(40+t/7.2)*t/len)
s = s_trans(h,samp=dt)

loadct,0
set_plot,'ps'
name='c:\temp\crazycontour.ps'
device,filename=name,color=0,xsize=6.5,xoffset=1,yoffset=2,y size=3,/inches

!p.charsize=1.
!P.multi=[0,2,1]
levels = findgen(15) - 2

contour,abs(s.st),s.time,s.freq,levels=levels,/fill,$
xtitle='Time',ytitle='Frequency',title='(a) ST'

; this below creates the correct contour plot,
; HOWEVER on my system it creates a 77mb ps file.
; So go ahead and see what happens.
contour,abs(s.st),s.time,s.freq,levels=levels,/cell,$
xtitle='Time',ytitle='Frequency',title='(a) ST'


device,/close
set_plot,'win'


end


The ST function is located at:
http://www.cora.nwra.com/~stockwel/rgspages/S-Transform/s_tr ans.pro
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: contour over a map and 180 degrees off or problems with dateline
Next Topic: emacs-snapshot and IDLWAVE

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

Current Time: Thu Oct 09 20:31:08 PDT 2025

Total time taken to generate the page: 1.19992 seconds