MathGroup Archive 2002

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: How to convert a matrix into a graph?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg37822] Re: How to convert a matrix into a graph?
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Thu, 14 Nov 2002 06:11:24 -0500 (EST)
  • Organization: Universitaet Leipzig
  • References: <aqssma$c6f$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

mat = Table[Random[], {16}, {16}];

Show[Graphics[{AbsolutePointSize[6],
        MapIndexed[
          {GrayLevel[#1], Point[#2*{1,-1}]} &, mat, {2}]}]];

??

Regards
  Jens

Jia Guo wrote:
> 
> Hi,
> 
> My problem is how a matrix can be converted into a graph so that each
> element in the matrix represents dot: The value of the element is
> corresponding to the darkness of the dot. The position of the element
> in the matrix is corresponding to the position of the dot in the
> graph.
> 
> Thank you!
> 
> Jia


  • Prev by Date: plotting against a variable
  • Next by Date: How to generate synthetic econometric time series?
  • Previous by thread: Re: How to convert a matrix into a graph?
  • Next by thread: Re: How to convert a matrix into a graph?