Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: Problem with RegionFunction

  • To: mathgroup at smc.vnet.net
  • Subject: [mg88051] Re: Problem with RegionFunction
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Wed, 23 Apr 2008 04:07:03 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <fukern$s4l$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de

Hi,

try

Manipulate[
  Plot3D[Sin[x]*Cos[y], {x, 1, 10}, {y, 2, 10},
   RegionFunction -> Function[{x, y}, 45 <= (y^x)],
   Exclusions -> x == 0], {dummy, {True, False}}]

because y^x for x==0 and y==0 is undefined.

Regards
   Jens

zac wrote:
> Dear Group,
> 
> any idea what is the problem with the output of this Manipulate?
> 
> Manipulate[
> Plot3D[Sin[x]*Cos[y],{x,1,10},{y,2,10},RegionFunction->Function[{x,y},
> 45<=(y^x)]]
> ,{dummy,{True,False}}]
> 
> Interestingly none of the following codes produces errors:
> 
> Plot3D[Sin[x]*Cos[y], {x, 1, 10}, {y, 1, 10},
>  RegionFunction -> Function[{x, y}, 45 <= (y^x)]]
> 
> Manipulate[
>  Plot3D[Sin[x]*Cos[y], {x, 1, 10}, {y, 1, 10},
>   RegionFunction -> If[region, All, Function[{x, y}, 45 <= (y^x)]]]
>  , {region, {True, False}}]
> 
> Any suggestion would be appreciated.
> Thanks in advance,
> Istvan Zachar
> 


  • Prev by Date: Hamiltonian System
  • Next by Date: Re: Changing TextStyle within Show
  • Previous by thread: Re: Problem with RegionFunction
  • Next by thread: Re: Problem with RegionFunction