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

Home » Public Forums » archive » Contour Issues... Help please
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Contour Issues... Help please [message #62504] Thu, 11 September 2008 11:01 Go to previous message
plim.dreaming is currently offline  plim.dreaming
Messages: 22
Registered: February 2008
Junior Member
Greetings all!
It has been a while since I last posted here, for me that's a good
sign.

Contour plots have always been full of issues. Contour plots and
"histogram"... It's like the user wants to do one thing and the
program wants to do another...

I have a set of irregularly distributed sources. 2 dimensional space.
x, y.
I would like to plot a contour of their density distribution. So I
figured, i'll use hist_2d to grid the space into bins of 0.1 by 0.1
and then contour plot the result.

result =
hist_2d(hmk,jmh,bin1=0.1,bin2=0.1,max1=max(hmk),max2=max(jmh ),
min1=min(hmk), min2=min(jmh))

levels = 30
step=(max(result)-min(result))/levels
userlevels=indgen(levels)*step + min(result)
contour,result,levels=userlevels,background=1,color=black,xs tyle=1,ystyle=1

Right?! Anybody see any major error thus far?
The thing is that the contour plot comes out with its axis ranging
from 0 to 50 whereas the input data only ranges from -1 to 4. And I
can't figure out why.

Any help is greatly appreciated,
Plim
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: export Plot-Settings from iplot
Next Topic: Compute area between curves

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

Current Time: Sun Oct 12 06:21:25 PDT 2025

Total time taken to generate the page: 1.44052 seconds