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

Home » Public Forums » archive » black window on fsc_surface & fsc_surface_log?
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: black window on fsc_surface & fsc_surface_log? [message #40535 is a reply to message #40472] Thu, 12 August 2004 13:54 Go to previous messageGo to previous message
u2s5thmember is currently offline  u2s5thmember
Messages: 11
Registered: January 2004
Junior Member
David Fanning writes:
> Oh, dear. :-(

Lol... I knew sooner or later you'd feel that way! ;)

scale_vector did the job, thanks! with scale_vector, GridData,
y=alog10(y), z=alog10(z) and FSC_Surface.pro I got something which
will be good enough to show my advisor... I think I might look into
getting scale_vector.pro to make log scale data more evenly spaced,
but it works great for right now.

Back to FSC_Surface_log.pro though... I modified it to handle a log
scale y-axis in addition to the the log scale z-axis you added:

------------------------------------------------------------
~line 1288:
yAxis = Obj_New("IDLgrAxis", 1, Color=[0,255,0], Ticklen=0.1, $
Minor=4, Title=ytitle, Range=yrange, Exact=exact[1], /LOG)

~line 1306 & ~line 1315:
yrange_surf = [10^yrange[0], 10^yrange[1]]

~line 1330:
thisSurface->SetProperty, XCoord_Conv=xs, $
YCoord_Conv=yrange_surf, ZCoord_Conv=zrange_surf
; originally ZCoord_Conv=zsurf...
; shouldn't it be zrange_surf instead, b/c "zsurf" d.n.e. ?
------------------------------------------------------------

these modifications make the axes look perfect, but somehow only a
slice of the data gets plotted and the data is plotted about 1 order
of magnitude too high.

with the above modifications to FSC_Surface_log.pro, here's an example
program which, on my machine, only shows a slice of the data:

;--------------------------------------------------
pro test_surface

x=[180., 190., 200., 210.]
y=[1.e-8, 1.e-7, 1.e-6, 1.e-5]
z=[1.e-3, 1.e-2, 1.e-1, 1.]


grid=GridData(x, y, z)

s = Size(grid, /Dimensions)
yy = Scale_Vector(Findgen(s[1]), Min(y), Max(y))
xx = Scale_Vector(Findgen(s[0]), Min(x), Max(x))

FSC_Surface_log, grid, xx, yy, Position=[0,1,0,1,0,1]


end
;--------------------------------------------------

does that show up incorrectly for you? Any ideas?
Thanks in Advance!
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: It seems that there is *a bit* polymorphism in IDL.
Next Topic: Distance transform / 3d nearest neighbor

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

Current Time: Sat Nov 29 03:27:57 PST 2025

Total time taken to generate the page: 0.40297 seconds