Re: Combining a ListDensityPlot that uses a userdefined color function with a graphics 'looses' the userdefined colorfunction
- To: mathgroup at smc.vnet.net
- Subject: [mg59709] Re: [mg59683] Combining a ListDensityPlot that uses a userdefined color function with a graphics 'looses' the userdefined colorfunction
- From: "benshimo at bgumail.bgu.ac.il" <bsyehuda at gmail.com>
- Date: Thu, 18 Aug 2005 00:16:49 -0400 (EDT)
- References: <200508170800.EAA24862@smc.vnet.net>
- Reply-to: benshimo at bgumail.bgu.ac.il
- Sender: owner-wri-mathgroup at wolfram.com
The first use of ListDensityPlot has different options setting then the second. The defaut value for the ColorFunctionScaling option is True. In the second use of the function you set it to false, so no wonder that the colors are changed. ColorFunctionScaling /. Options[ListDensityPlot] will return True So set the same value for this option and get the same color behavior good luck yehuda On 8/17/05, hopeandjoyandpeace at hotmail.com <hopeandjoyandpeace at hotmail.com> wrote: > > Combining a ListDensityPlot that uses a userdefined color function with > a graphics 'looses' the userdefined colorfunction > > for example > > myArray=Table[Sin[x*y],{x,1,40},{y,1,40}]//N; > Max[myArray] > ListDensityPlot[myArray,Mesh-> False] > > > Show[ListDensityPlot[myArray,Mesh->False,ColorFunction->GrayLevel,ColorFunctionScaling->False],Graphics[{Blue,Thickness[ > 0.01],Line[{{10,10},{20,20}}]}]] > > > > Gives three density graphics but only one of them appears to uses the > colorfunction of GrayLevel. > > We have version 5.1 > How can I combine the image resulting when I define my own > colorFunction with another graphics without the image changing the way > it appears? > > > Chris > ABCC Regina > >
- References:
- Combining a ListDensityPlot that uses a userdefined color function with a graphics 'looses' the userdefined colorfunction
- From: hopeandjoyandpeace@hotmail.com
- Combining a ListDensityPlot that uses a userdefined color function with a graphics 'looses' the userdefined colorfunction