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

Home » Public Forums » archive » Re: block fill image
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: block fill image [message #62344] Fri, 05 September 2008 07:29 Go to previous message
Juggernaut is currently offline  Juggernaut
Messages: 83
Registered: June 2008
Member
On Sep 5, 9:50 am, "ben.bighair" <ben.bigh...@gmail.com> wrote:
> On Sep 5, 7:58 am, maffie <matthias.demuz...@geo.kuleuven.be> wrote:
>
>> Dear all,
>
>> I would like to make an image, presenting cluster classes on the x-
>> axes, and different variables on the Y-axes. Each combination (Xi,Yi)
>> should be represented by a block, whereby its color fill should
>> represent a standard deviation, and with the mean written in the box
>> as text.
>
> Hi,
>
> I think you could simply create the image and populate each pixel with
> the standard deviation.  Then the trick is to use an image display
> routine that will use nearest neighbor interpolation - try David
> Fanning's TVSCALE or Liam Gumley's IMDISP for example.  You'll want to
> carefully control the color scheme for which each of these gives you
> plenty of options.  The subsequent annotations can be done using
> XYOUTS like this..
>
> dy = (y[1]-y[0])/2.
> for i = 0L, nx-1 do begin
>   for j = 0L, ny-1 do begin
>     XYOUTS, x[i], y[j] + dy, stddev[i,j], ALIGN = 0.5, ....
>   endfor ; j loop
> endfor ; i loop
>
> You may want to add an offset in the Y direction for the image - that
> is what the dy is about.
>
> Cheers,
> Ben

polyfill is another IDL procedure that you may be interested in if you
are wanting to make blocks of different colors on the plot
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Trouble writing very large files
Next Topic: memory/spawn problems

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

Current Time: Wed Oct 08 15:36:34 PDT 2025

Total time taken to generate the page: 0.00400 seconds