Color problem with listdensityplot. Please HELP
- To: mathgroup at smc.vnet.net
- Subject: [mg15552] Color problem with listdensityplot. Please HELP
- From: Nick <Art at EMBL-Hamburg.de>
- Date: Tue, 26 Jan 1999 13:44:36 -0500 (EST)
- Organization: Deutsches Elektronen-Synchrotron (DESY)
- Sender: owner-wri-mathgroup at wolfram.com
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 EMBL-Hamburg.de