I have a sample of data, which, if I try to pass it to ListDensityPlot3D, is not plotted at all. But if I remove one point from it from the beginning or the end, then I do get something plotted. See for example (with a reduced data set):

test = Import["https://pastebin.mozilla.org/?dl=9074516", "csv"];
Row@{ListDensityPlot3D[test, OpacityFunction -> (1 &), ImageSize -> 300],
  ListDensityPlot3D[Drop[test, 1], OpacityFunction -> (1 &), ImageSize -> 300]}

output from the above command

I've tried taking a look at the points themselves, but the difference between test and Drop[test,1] didn't really give me any hints:

Show[ListPointPlot3D[Take[#, 3] & /@ test, PlotRange -> All, PlotStyle -> Red], 
 ListPointPlot3D[Take[#, 3] & /@ Drop[test, 1], PlotRange -> All, PlotStyle -> Green]]

point set comparison plot

You can see that the red point in the plot above (see the top part of the image) doesn't seem to be an outlier or whatever.

So, what's going on? Why does ListDensityPlot3D do plot the data without the first point, but not the full data?

  • 1
    $\begingroup$ I confirm this behavior Mma 11.2, Win. 7 $\endgroup$ – Alexei Boulbitch Dec 12 '17 at 10:10
  • $\begingroup$ The first line in the pastebin reads 0.1569,0.729996,4.57186e-17,2.3148e-8. Is it possible the e is interpreted as E=2.71...? $\endgroup$ – AccidentalFourierTransform Dec 12 '17 at 14:34
  • $\begingroup$ @AccidentalFourierTransform no, Mathematica is smart enough in its handling of CSV format. It gives me {0.1569, 0.729996, 4.57186*10^-17, 2.3148*10^-8} as the result of First@Import[...]. $\endgroup$ – Ruslan Dec 12 '17 at 16:27

Your Answer

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

Browse other questions tagged or ask your own question.