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

Home » Public Forums » archive » Displaying a matrix in the most literal sense
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
Displaying a matrix in the most literal sense [message #69133] Sat, 12 December 2009 22:37
Mr.G is currently offline  Mr.G
Messages: 5
Registered: December 2009
Junior Member
Hello all,

I have a 6 by 6 matrix as follows:

m1=
[[-8.3154349,-7.2612143,-10.932296,-15.152297,-18.437241,-21 .505252],$
[-7.2612143,-5.3079651,-8.9813512,-13.264392, -16.536048,-19.589704],$
[-10.932296,-8.9813512,-13.456954,-15.249534,-18.993573,-24. 157051],$
[-15.152297,-13.264392,-15.249534,-17.049855,-17.272892,-19. 309707],$
[-18.437241,-16.536048,-18.993573,-17.272892,-13.018024,-15. 181197],$
[-21.505252,-19.589704,-24.157051,-19.309707,-15.181197,-11. 384910]]

What I want to do is to display this matrix in 2D with grey-scale. I
want Large value to be brighter.
I want an undistorted, exact display -- so "contour, m1" is not what I
want to use.

I tried the command "tvscl, m1", however, the display became so small
that I can't not see it.
I know enlarging the matrix (by congrid) will do the job -- but, I
also want x-axis and y-axis on the display.

The command "image_cont, m1" *almost* do the job. However, I would
like to erase the contour part. Besides, I wish I will be able to
modify the ticks of x-axis and y-axis -- I want the ticks run from 1
to 6, not 1 to 5. It would be really nice if I can use the keywords
of "plot" and "axis".

Could anyone please help me. Shall I try to modify image_cont.pro?

Mr.G
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: fixing DICOM read issues
Next Topic: Re: Displaying a matrix in the most literal sense

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

Current Time: Wed Oct 08 09:22:01 PDT 2025

Total time taken to generate the page: 0.00444 seconds