MathGroup Archive 2011

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

Search the Archive

Re: Is it possible to define new color schemes?


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?