Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Smooth out Density Plot Mathematica

I am importing a three column table into Mathematica and using it to make a density plot. However unless you have a very large amount of data in small increments the density plot looks disjointed and obviously not continuous.

is there a way or a function to smooth out my plots?

Thanks, Ben

like image 763
user1558881 Avatar asked Jan 13 '23 14:01

user1558881


1 Answers

I guess what you are looking for is the InterpolationOrder option. Below is the example from the documentation which 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

like image 132
halirutan Avatar answered Jan 31 '23 11:01

halirutan