Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: plot3D over a triangular domain

  • To: mathgroup at smc.vnet.net
  • Subject: [mg58017] Re: [mg57984] plot3D over a triangular domain
  • From: yehuda ben-shimol <bsyehuda at gmail.com>
  • Date: Thu, 16 Jun 2005 05:36:55 -0400 (EDT)
  • References: <200506150958.FAA29783@smc.vnet.net>
  • Reply-to: yehuda ben-shimol <bsyehuda at gmail.com>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,
you can try to multiply the function by a boolean (or UnitStep) to set
the values to zero outside the triangle
that is
Plot3D[Boole[-1 < x < 1 && -0.5 + 0.5x < y < 0.5 - 
      0.5x]*func, {x, -1, 1}, {y, -2, 2}, PlotPoints -> 75, Mesh -> False]
If you set func as 1 you will see the triangle alone
yehuda
On 6/15/05, Tun Myint Aung <TMA at nus.edu.sg> wrote:
> 
> Hi All,
> 
>     I would like to plot a function over a isosceles triangular domain.
> I mean Plot3D[function, {x,-1,1},{y, -0.5+0.5x, 0.5-0.5x}]. But I got
> message that the limit must be real number. Anyone can help me?
> 
> Best Regards,
> 
> Tun Myint Aung
> Graduate Student
> National University of Singapore
> E1A #02-18
> E-mail g0202015 at nus.edu.sg <mailto:g0202015 at nus.edu.sg>
> 
> 
> 
> 
>


  • Prev by Date: Re: How to rotate a PolarPlot?
  • Next by Date: Re: How to rotate a PolarPlot?
  • Previous by thread: plot3D over a triangular domain
  • Next by thread: Plot3D over a triangular domain