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

Home » Public Forums » archive » Re: Plotting Color Strips - thermograms.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Plotting Color Strips - thermograms. [message #1959] Thu, 21 April 1994 07:25
stl is currently offline  stl
Messages: 70
Registered: February 1994
Member
In article <CoLK2D.66p@cnsnews.Colorado.EDU> shah@spot.Colorado.EDU (SSS) writes:
> Could anyone suggest a simple way to plot X rectangular strips
> on a page. Say I have a m by n matrix, where each of n columns is to
> be imaged as a thermogram, akin to an image. And I want to lay these
> colorful strips out as follows ...
>
> |=======| |=======| |=======| |=======|
> 1 2 3 4
>
> |=======| |=======| |=======| |=======|
> 5 6 7 8
>
> and so on..
>
> Concerns and Questions:
> ========================
>
> How does one divide the page to position these strips?
>
> How does one convert an array (1-d) into an image?
Hello,

okay, We can do this:
so each column is to become a thermogram (which I presume is just the
data from the column, displayed on its side, and made say 30 pixels tall
so it looks like a color scale (sounds like what a thermogram might be))

okay, first, I would transpose your array, so each thermogram is a row.
data = transpose(data)
image = intarr(600,600) ;define the image you will
; build
then build an image that will contain these thermograms. SOmething like
the following: (assuming your data are integers less then 255)

therm1 = rebin(data(*,0),100,40) ;assuming a multiple of rows of
; data is 100
This took your row, and stretched (rebined) it into a 100x40 array (AN
IMAGE! Cool!)
now put this into your image you are building:
image(20,500) = therm1

and so on for each of the thermograms. PLacing each in a different
position of the image array.

> Also, it is required to place a vertical color index to describe what
> each color signifies. Is it possible to mix horizontal and vertical
> strips?
same idea exacly for the color index, just label it with XYouts.
SOmething in my head says there in a colorIndex routine in the user
library, but not sure.
>
> Any suggestions would be appreciated. If any routine which
> does similar procedures exists, I would be grateful if someone
> could direct me to the right place.

Also, you could just plot each of these rows of data (each thermogram)
and use !P.Multi to display all the plots in the fashion you described
above.

> Regards
>
> Safwan SHAH
> --
> =========================== Department of Aerospace Engineering Sciences
> BioServe Space Technologies University of Colorado at Boulder
> =========================== E-Mail: shah@spot.colorado.edu

hope I am kinda of close, and this helps a little,

stephen Strebel
--
Stephen C Strebel / SKI TO DIE
stl@maz.sma.ch / and
Swiss Meteorological Institute, Zuerich / LIVE TO TELL ABOUT IT
01 256 93 85 / (and pray for snow)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL output->MS PwrPnt for Mac. Not EPS
Next Topic: Re: IDL Slider Widget with discrete values

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

Current Time: Wed Oct 08 19:42:50 PDT 2025

Total time taken to generate the page: 0.00506 seconds