2
$\begingroup$

I am using ListDensityPlot to plot a set of graphs, i.e. I have got a rectangular grid. Is there any way how to prevent interpolation along the y axis and interpolate data only in the x direction? So far I was thinking only about "pre-interpolation" of my dataset before I plot it and then using InterpolationOrder->0.

$\endgroup$
3
$\begingroup$

Perhaps,

data = Table[Sin[x y], {x, 0, 3, 1.}, {y, 0, 3, 1.}]; 

ContourPlot[ListInterpolation[data, {{0, 3}, {0, 3}}, 
      InterpolationOrder -> #][x, y], {x, 0, 3}, {y, 0, 3}, ContourStyle -> None, 
  PlotLabel -> Row[{"InterpolationOrder->",#}], ImageSize -> 200] & /@ 
   {{3, 1}, {3,3}, {1, 3}, {3, 0}, {0,0}, {0, 3}} // Grid[Partition[#, 2]] &

Mathematica graphics

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.