Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: False image plot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg58354] Re: False image plot
  • From: dh <dh at metrohm.ch>
  • Date: Tue, 28 Jun 2005 21:56:50 -0400 (EDT)
  • References: <d9r528$56u$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,
there are different ways to achieve this, but one of the most basic way 
would be to create a Hue and a point directive for every point you want 
to draw. Toward this aim we define a function taking 3 arguments and 
returning a Hue and Point directive:

fun[x1_,x2_,x3_]:={Hue[x3],Point[{x1,x2}]};

We then feed this function with your 3 lists and display the result:

Show[Graphics[{PointSize[0.3],
    MapThread[ fun,{list1,list2,list3}]
}],Frame->True]

where we added a PointSize and a Frame command for more glamour. To make 
this work, list3 must contain numbers between 0 and 1 (Hue request 
this). If this is not the case, you must first normalize list3 by e.g.
list3= List3/Norm[list3]

sincerely, Daniel

tornado78 wrote:
> Ok here is another one i need help on
> 
> How do you get mathematica to take three lists of numbers, plot one as x, one as y and the third not as a 3rd dimension but as a color value of some sort for example blue for low values, red and yellow for high values of the third set of numbers
> 
> thanks
> 


  • Prev by Date: Re: Smoothing Splines
  • Next by Date: Re: Help! Delete Casses based on column
  • Previous by thread: False image plot
  • Next by thread: Re: False image plot