Density Leveling Mathematica Density

I import a three-column table into Mathematica and use it to create a density graph. However, if you have a very large amount of data with a small step, the density graph looks incoherent and obviously not continuous.

Is there any way or function to smooth my stories?

Thanks Ben

+4
source share
2 answers

I assume you are looking for an InterpolationOrder option. Below is an example from the documentation that shows how it works even for a 6x6 data grid.

 data = Table[Sin[j^2 + i], {i, 0, Pi, Pi/5}, {j, 0, Pi, Pi/5}]; Table[ListDensityPlot[data, Mesh -> None, InterpolationOrder -> o, ColorFunction -> "SouthwestColors"], {o, {0, 1, 2, 3}}] 

Mathematica graphics

+6
source

Use InterpolationOrder :

 data = Table[Sin[j^2 + i], {i, 0, Pi, Pi/5}, {j, 0, Pi, Pi/5}]; GraphicsRow@ {ListDensityPlot[data, Mesh -> None, InterpolationOrder -> 3], ListDensityPlot[data, Mesh -> None]} 

Mathematica graphics

+3
source

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


All Articles