Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

display pixel value with ListDensityPlot

10 views
Skip to first unread message

Timothy Williams

unread,
Aug 3, 1997, 3:00:00 AM8/3/97
to

ListDensityPlot can give the coordinates of a 2D density plot, but not
the actual values. Is there a way to display the value of an image
using the mouse?

Thanks.
--
Tim Williams COM: (703) 704-1685
Night Vision & Electronic Sensors Directorate DSN: 654-1685
10221 Burbeck Road, Suite 430 FAX: (703) 704-1753
Ft. Belvoir, VA 22060-5806 E-MAIL: will...@nvl.army.mil


Paul Abbott

unread,
Aug 4, 1997, 3:00:00 AM8/4/97
to

Timothy Williams wrote:

> ListDensityPlot can give the coordinates of a 2D density plot, but not
> the actual values. Is there a way to display the value of an image
> using the mouse?

In the Mathematica Journal 3(1): 22 there is an example by Theo Gray
from Wolfram Research, Inc. of "aural" encoding:

It is sometimes interesting to encode information in the form of
sounds. Here is an example that associates to a location in the (x,
y)-plane a sound whose frequency is proportional to the value of a
function f(x,y):

points=15;

sounds = First[Graphics[Table[Rectangle[{n, m},
{n + 4/points, m + 4/points},
Graphics[{Play[Evaluate[Sin[2000*2^Sin[n*m]*x]*
ArcTan[100*x]*Cos[(x*Pi)/(2*0.2)]],
{x, 0, 0.2}, PlayRange -> {-1, 1},
DisplayFunction -> Identity][[1]]}]],
{n, 0, 4 - 4/points, 4/points},
{m, 0, 4 - 4/points, 4/points}]]];

Note the use of Rectangle

DensityPlot[Sin[x y],{x,0,4},{y,0,4},Epilog->sounds,
PlotPoints->points];

Select the graphic, and then Shift-Click on it. Hold down the mouse
button and drag around to hear a changing sound.

Cheers,
Paul

____________________________________________________________________
Paul Abbott Phone: +61-8-9380-2734
Department of Physics Fax: +61-8-9380-1014
The University of Western Australia
Nedlands WA 6907 mailto:pa...@physics.uwa.edu.au
AUSTRALIA http://www.pd.uwa.edu.au/Paul

God IS a weakly left-handed dice player
____________________________________________________________________


0 new messages