Re: L-shaped ListContourPlot
- To: mathgroup at smc.vnet.net
- Subject: [mg97288] Re: L-shaped ListContourPlot
- From: ucervan at gmail.com
- Date: Tue, 10 Mar 2009 05:34:10 -0500 (EST)
- References: <goqpdt$lri$1@smc.vnet.net> <gp2qfl$d0q$1@smc.vnet.net>
Use: ListContourPlot[data, ColorFunction -> "Rainbow", PlotRange -> All, RegionFunction -> Function[{x, y, z}, (y < 5) || (x < 3)], MaxPlotPoints -> 30] To understand why this is, compare these two: ListContourPlot[data, ColorFunction -> "Rainbow", PlotRange -> All, RegionFunction -> Function[{x, y, z}, (y < 5) || (x < 3)], Mesh -> All] ListContourPlot[data, ColorFunction -> "Rainbow", PlotRange -> All, RegionFunction -> Function[{x, y, z}, (y < 5) || (x < 3)], MaxPlotPoints -> 30, Mesh -> All] The default for ListDensityPlot, ListContourPlot and ListPlot3D for irregular data is to use the original data as the support for a triangulation. Setting MaxPlotPoints->30 will force a resampling which will add new information to the mesh n the domain and this will make a closer approximation for the RegionFunction. -Ulises Cervantes WRI