MathGroup Archive 2000

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

Search the Archive

Re: ContourPlot in arbitrary shape domain.

  • To: mathgroup at
  • Subject: [mg21881] Re: [mg21815] ContourPlot in arbitrary shape domain.
  • From: Hartmut Wolf <hwolf at>
  • Date: Wed, 2 Feb 2000 22:54:36 -0500 (EST)
  • Organization: debis Systemhaus
  • References: <>
  • Sender: owner-wri-mathgroup at

Roberto Brambilla schrieb:
> Hello!
> Sometimes I've to contour plotting a f(x,y) function on a
> domain other than rectangular (ring, L,U,T-shapes, multiconnected
> regions,etc.). An obvious solution is to subdivide the domain in
> rectangles and to paste all the relative contourplots by some
> external graphical program (or real scissors).
> Heavy work and poor results.
> There are not tricks or packages to improve ContourPlot[] function
> extending its use to regions defined by a set of equations ?
> I'd like something as
> ContourPlot[f[x,y],< set of xy-region specifications>]

Dear Roberto,

In Tom Wickham-Jones book "Mathematica Graphics"
you'll find in 13.3 Constraining Contour Plots some explanations to the


You get the function with the package at 

You can use it if you can express your shapes as a constraint function
e.g. as f[x,y] < 0 for all points of your L, U, and Ts. The function
gives the Contours, yet not the shading. 

For that you must extend the clipping function to Polygons. You can use
part of the code, but the extension is not trivial.
(Perhaps it's easier to post process the output of that function i.e.
fill in your own shading.)

Kind regards, Hartmut

  • Prev by Date: Re: Evaluating a Notebook down to a selected point (without mousing)?
  • Next by Date: Re: Fitting a function to a list (newbie)
  • Previous by thread: Re: ContourPlot in arbitrary shape domain.
  • Next by thread: RE: ContourPlot in arbitrary shape domain.