Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #6626

Re: Is it possible to define new color schemes?

From Bob Hanlon <hanlonr357@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Is it possible to define new color schemes?
Date 2011-11-22 10:45 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jafug5$rt7$1@smc.vnet.net> (permalink)
References <201111210928.EAA14782@smc.vnet.net>

Show all headers | View raw


DensityPlot[Sin[x] Sin[y], {x, -4, 4}, {y, -3, 3},
 ColorFunction -> (Blend[{Red, Yellow}, #] &)]

You can replace {Red, Yellow} with your end colors and the # with f[#]
where f is an interpolation function for your data points.


Bob Hanlon

On Mon, Nov 21, 2011 at 4:28 AM, Darau, M. <M.Darau@tue.nl> wrote:
> Hello,
>
> Is it possible to define a new gradient color scheme to use in DensityPlot? If so, how can I do that? I know the RGB of the end colors, and maybe 2-3 intermediate ones.
>
> Thanks,
> Mirela
>

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Is it possible to define new color schemes? Bob Hanlon <hanlonr357@gmail.com> - 2011-11-22 10:45 +0000

csiph-web