Student Support Forum: 'Unwanted Clipping on Density Plot' topicStudent Support Forum > General > "Unwanted Clipping on Density Plot"

 < Previous Comment | Next Comment > Help | Reply To Comment | Reply To Topic
 Author Comment/Response Bill Simpson 02/12/13 12:48pm In Response To 'Re: Re: Unwanted Clipping on Density Plot'---------Ah, this is much more helpful. From this we can make a guess and see what happens. From your graphs I'm guessing your DensityPlot may be clipping when your function goes negative. So it is experiment time. Try DensityPlot[Max[1/2,f[x,y]],{x,-.15,.15},{y,0,.3}] and see what happens. That is going to plot your function, but if your function is ever less than 1/2 it will plot 1/2 instead. That way it can never go negative. If that changes the clipped region color then you can substitute 1 for 1/2 and see if it changes the color even more. If this guess works out then we have to wonder why DensityPlot appears to be clipping. The examples in http://reference.wolfram.com/mathematica/ref/DensityPlot.html show functions that are negative in lots of places but which are not clipping. If you look at http://reference.wolfram.com/mathematica/ref/ClippingStyle.html then this is perhaps what is responsible. See what happens if you include PlotRange->All,ColorFunctionScaling->True as an option to your DensityPlot. Perhaps the wizard hiding behind DensityPlot thinks that the sufficiently large swings of amplitude in your plot are going to obscure what you really want to see and so it is clipping off some of those, the highly negative parts, to not squash all the small changes in the positive parts into just be almost the same uniform color. PlotRange->All turns off part of the wizard and just uses it all. ColorFunctionScaling will force all your values to lie between 0 and 1, by scaling, so that they have a color to display. Try it, report back with more pictures and we will keep trying to figure it out URL: ,

 Subject (listing for 'Unwanted Clipping on Density Plot') Author Date Posted Unwanted Clipping on Density Plot Carly 02/11/13 11:41am Re: Unwanted Clipping on Density Plot Bill Simpson 02/11/13 4:12pm Re: Re: Unwanted Clipping on Density Plot carly 02/11/13 8:56pm Re: Re: Re: Unwanted Clipping on Density Plot Bill Simpson 02/12/13 12:48pm Re: Re: Re: Re: Unwanted Clipping on Density Plot Carly 02/12/13 6:22pm Re: Re: Re: Re: Re: Unwanted Clipping on Densit... Bill Simpson 02/12/13 8:12pm
 < Previous Comment | Next Comment > Help | Reply To Comment | Reply To Topic