DensityPlot Math Team

Information for DensityPlot says that "by default, it generates color black and white output, in which larger values ​​are displayed more easily." What colors are painted in shades of gray? Is there a way to make it really gray without the blue and violet colors that it generates? And when I do this, it seems a bit pixelated. Is there a way to evaluate it at more points so that it doesn't look so volatile?

+3
source share
1 answer

By the color of the shades of gray, I think they mean that it is monochrome or, possibly, bichromatic, that is, a linear scale from one color to another, and not completely changing in the whole color space. I do not agree. This is not a good term.

An indication ColorFunction->GrayLevelshould give you a clear shade of gray. This differs from the built-in GrayTones ( ColorFunction->"GrayTones") gradient , which seems to end a bit with black and white at the ends and a bit warm. There are many other built-in gradients - see Return Value ColorData ["Gradients"]. Of course, you can also specify your own function - it will take from 0 to 1 as a real number and should return a color specification, for example. return values GrayLevel, RGBColor, Hueor CMYKColor.

, , PlotPoints ( ) MaxRecursion ( ).

+4

Source: https://habr.com/ru/post/1759570/


All Articles