MathGroup Archive 1999

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

Search the Archive

Color problem with listdensityplot. Please HELP

  • To: mathgroup at
  • Subject: [mg15552] Color problem with listdensityplot. Please HELP
  • From: Nick <Art at>
  • Date: Tue, 26 Jan 1999 13:44:36 -0500 (EST)
  • Organization: Deutsches Elektronen-Synchrotron (DESY)
  • Sender: owner-wri-mathgroup at

Dear All,

I want to show a two dimensional data file as a color plot.  I'll use
the following lines:

data=ReadList("data.txt", Number, RecordLists->True];
ListDensityPlot[data, Mesh->False, PlotRange ->{-20, 20}];

My data is in the range of -20 to 20. Now I get a nice picture showing
the data in grayscale. This is not what I want.
I would like to show my data with colors in the following form:

Blue gradient below zero
Red gradient above or equal zero

so the value of -20 should be very blue, 0 should be white and 20 should
be very red with all shades of coulors in between. The reason for this
requirement is that the data is a difference of two datafiles. I do not
know how to do this. Please help me.

Many thanks,

Nick Art
E-mail: Art at

  • Prev by Date: RE: Next Version of Mathematica?
  • Next by Date: Re: frontend.c file
  • Previous by thread: findroot problem
  • Next by thread: RE: Color problem with listdensityplot. Please HELP