I have a list of {x,y,z} values and I am using a ListDensityPlot to visualize it. I want to draw contours with something like MeshFunctions->{#3&}. This is what I have now:
ListDensityPlot[data, PlotRange->{0, 350}, Mesh->{10}, MeshFunctions->{#3 &}]
But I want the values of contours to grow exponentially from the minimum value of z up to the maximum range (which is 350). How do I do that? Thanks!
If you give a single number (like 10) to
Mesh, you’re asking for that many contours, evenly spaced. But if you give it a list of values, contours will be drawn at those points.So all we need now is a list of ten numbers (let’s say
nnumbers) increasing exponentially from the minimum value (call itmin) to the maximum (call itmax). We can generate it like this — the proof is left as an exercise:So the solution to your problem is:
Note the extra braces around the
Tablecall, which make that list of values the specification for a single mesh.