MathGroup Archive 2011

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

Search the Archive

Re: Is it possible to define new color schemes?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg123072] Re: Is it possible to define new color schemes?
  • From: Bob Hanlon <hanlonr357 at gmail.com>
  • Date: Tue, 22 Nov 2011 05:36:49 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <201111210928.EAA14782@smc.vnet.net>

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 at 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
>



  • Prev by Date: Re: Matrices as operators
  • Next by Date: Re: All previous notebooks open at startup
  • Previous by thread: Is it possible to define new color schemes?
  • Next by thread: Re: Is it possible to define new color schemes?