2
$\begingroup$

I tried an answer on the post here and I had an unwanted gap (see attached picture)

enter image description here Does anyone know how to avoid this gap?

$\endgroup$
4
  • $\begingroup$ try removing the option PlotRange from the definition of pltstyl (or change it to PlotRange -> All) $\endgroup$
    – kglr
    Sep 8, 2021 at 9:16
  • $\begingroup$ Thanks, It worked. I changed the limits of PlotRange to ->All. $\endgroup$
    – Thapanio
    Sep 8, 2021 at 10:10
  • 2
    $\begingroup$ Should I post a code for the solution? $\endgroup$
    – Thapanio
    Sep 8, 2021 at 10:13
  • 1
    $\begingroup$ Thapanio, that's a good idea. $\endgroup$
    – kglr
    Sep 8, 2021 at 10:40

1 Answer 1

2
$\begingroup$

With the help from @kglr, I managed to find a solution.

The main change to eliminate the gap PlotRange->All

data=any random matrix
data2=ArrayPad[data,{0,1}];
ListPlot3D[data2,Mesh-> Full,InterpolationOrder->0,Filling->Bottom,
FillingStyle->{Opacity[0.7]},ColorFunction->"IslandColors",PlotRange->All,
DataRange->All,FaceGrids->{Bottom,Back,Left},ImageSize->400,PlotTheme->"Monochrome",
PlotStyle->Directive[Opacity[0.9],Blue]]

enter image description here

$\endgroup$

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