ListContourPlot and InterpolationOrder
- To: mathgroup at smc.vnet.net
- Subject: [mg84698] ListContourPlot and InterpolationOrder
- From: nigol <dario.buttari at gmail.com>
- Date: Thu, 10 Jan 2008 02:28:19 -0500 (EST)
Sometimes ListCountourPlot does not produce a result when used in
conjunction with InterpolationOrder.
In[16]:= $Version
Out[16]= "6.0 for Microsoft Windows (32-bit) (June 19, 2007)"
For example try the following command:
Table[ListContourPlot[RandomReal[1, {5, 3}], InterpolationOrder -> 3,
MaxPlotPoints -> 30], {10}]
Some of the ListCountourPlot in the above example should be empty.
Based on few previous posts I realized that the problem is related to
the order of the points to be interpolated, but so far I was unable to
determine an ordering function that will work in all cases (that is
the reason I provided the example above: fixing a single contour plot
is generally easy, but fixing the general problem seems harder).
For example:
ListContourPlot[{{1, 0, 0}, {1, 3, 1}, {0, 1, 2}},
InterpolationOrder -> 3, MaxPlotPoints -> 50]
does not work, but
ListContourPlot[Sort@{{1, 0, 0}, {1, 3, 1}, {0, 1, 2}},
InterpolationOrder -> 3, MaxPlotPoints -> 50]
works.
Removing InterpolationOrder and/or MaxPlotPoints fixes the problem,
but the countours are rough due to the lack of interpolation.
Thanks,
Dario