Bug introduced in 12.0.0

I'm having some problems with ListDensityPlot in Mathematica 12 on MacOS Mojave.

Here is the code:

test = Import["https://www.dropbox.com/s/0ypdo4pdh9q86j5/test.csv?dl=1"];
ListDensityPlot[test, PlotRange -> All, InterpolationOrder -> 0]

(data can be found here: https://www.dropbox.com/s/0ypdo4pdh9q86j5/test.csv?dl=0)

Output in MMA11.3

enter image description here

Output in MMA 12

enter image description here

In v12 there are a lot of unwanted triangles in the plot. Any idea of what the problem might be?

EDIT: I forgot to mention that the problem "disappears" with any value different than 0 assigned to InterpolationOrder.

EDIT 2: It actually seems to be a genuine bug, so I added the bugs tag and reported to mathematica support.

  • $\begingroup$ Can confirm on 64bit Windows 10 (Version 1809) box. $\endgroup$ – PlatoManiac Apr 18 at 14:32
  • $\begingroup$ InterpolationOrder -> 1 seems to give the same (correct?) output for 10.4, 11.3, and 12 (Windows 10). $\endgroup$ – JimB Apr 18 at 15:36
  • $\begingroup$ @JimB yes, any interpolation value != 0 seems to work fine as I mentioned in the edit. $\endgroup$ – Fraccalo Apr 18 at 15:39
  • $\begingroup$ Sorry. I went to have breakfast and didn't notice the update. I'll delete my comment shortly. Overlaying the (x,y) points shows the triangles occurring where the points are. Don't know if that adds anything or not. $\endgroup$ – JimB Apr 18 at 15:45
  • $\begingroup$ No worries and no need to delete it. It's "good" too know that there is consistency between the different os. I was afraid it was yet another bug on macos only! $\endgroup$ – Fraccalo Apr 19 at 9:25

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.