MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: L-shaped ListContourPlot



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




  • Prev by Date: Re: Mathematica 7.0.1.0 and some General Comments
  • Next by Date: Re: Help
  • Previous by thread: Re: Re: L-shaped ListContourPlot
  • Next by thread: Re: L-shaped ListContourPlot