Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

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




  • 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