Skip to main content

Timeline for Why is ListContourPlot so slow?

Current License: CC BY-SA 3.0

17 events
when toggle format what by license comment
Sep 3, 2019 at 9:00 history tweeted twitter.com/StackMma/status/1168810980853321729
Aug 28, 2019 at 4:38 history edited Alexey Popkov
edited tags
Mar 11, 2016 at 12:52 vote accept T. Rihacek
Mar 11, 2016 at 11:05 answer added Jason B. timeline score: 22
Mar 11, 2016 at 10:35 history reopened J. M.'s missing motivation
Mar 11, 2016 at 10:30 history edited T. Rihacek CC BY-SA 3.0
added 607 characters in body
Mar 11, 2016 at 9:43 comment added T. Rihacek Thank you all for useful advises! I tried DensityPlot[Interpolation[...]] which is much faster indeed, but image quality is very bad with interpolation. Much better quality is achieved with ArrayPlot[] which i like a lot, but I loose informations about (x,y) coordinates. I need to simply visualize points on regular grid without any interpolation but keep (x,y) coordinates.
Mar 11, 2016 at 8:14 history closed Bob Hanlon
MarcoB
CommunityBot
RunnyKine
Jason B.
Not suitable for this site
Mar 10, 2016 at 17:26 comment added MarcoB Further issues, possibly relevant: ListContourPlot and ListContourPlot3D use better interpolation for arrays of values than for lists of tuples, and depending on your version, you may be running into a bug that existed up to version 10.3: Terrifying performance decrease for contour/density plots in v10.1 -> 10.3.
Mar 10, 2016 at 15:53 review Close votes
Mar 11, 2016 at 8:17
Mar 10, 2016 at 15:53 comment added BlacKow There is some discussion here
Mar 10, 2016 at 14:38 comment added Jason B. By any chance, is your data such that the scale for the z-axis much different than it's y and x scales? If so, that could also be a source of the trouble, it is a known bug
Mar 10, 2016 at 14:26 comment added Jason B. Another option that is probably faster is to do this, intfunc=Interpolation[data]; DensityPlot[ intfunc[x, y], {x, xmin, xmax}, {y, ymin, ymax}, options] where data is your data and options are all the options you use with ListDensityPlot
Mar 10, 2016 at 14:24 comment added Jason B. Are the data points in a regular grid? Or are they randomly spaced throughout the grid? If they are regular, then you are much better off reshaping it so that you have an $n \times n$ array of z values only. For some reason that plots much better.
Mar 10, 2016 at 14:22 comment added T. Rihacek It really does. The generation is a bit long but data are stored, so I actually use ListDensityPlot[{{x1, y1, z1}, {x2, y2, z2},.......{x262144, y262144, z262144}}].
Mar 10, 2016 at 14:07 comment added Jason B. It shouldn't take that long, can you post the code that generates the data, or is it too long? Is the data in the form of an $n \times n$ array, or in the form of {{x1, y1, z1}, {x2, y2, z2},.......{xn, yn, zn}}?
Mar 10, 2016 at 13:46 history asked T. Rihacek CC BY-SA 3.0