MathGroup Archive 2006

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

Search the Archive

Re: Plot3D: plot does not display when PlotPoints different from 25. Mathematica 5.2

  • To: mathgroup at smc.vnet.net
  • Subject: [mg65811] Re: [mg65730] Plot3D: plot does not display when PlotPoints different from 25. Mathematica 5.2
  • From: "David Park" <djmp at earthlink.net>
  • Date: Mon, 17 Apr 2006 02:29:07 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Nasser,

Simple, with 26 plot points Mathematica never samples x == 0 pr y == 0.

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/ 

From: nma at 12000.org [mailto:nma at 12000.org]
To: mathgroup at smc.vnet.net


[This post has been delayed due to email problems - moderator]


Remove["Global`*"]

u[x_, y_] := Module[{},
    If[x == 0, Return[1 + y]];
    If[y == 0, Return[1]];
    Return[0];
]

Plot3D[u[x, y], {x, -1, 2}, {y, -1, 2},
  FaceGrids -> None,
  AxesLabel -> {"U(x,y)", "x", "y"},
  PlotLabel -> "Boundary conditions",
  PlotPoints -> 25]

works OK. But if you change 25 to say 26 in the last line above, the
plot does not show up any more !

Can someone explain why this is?

thanks,
Nasser Abbasi



  • Prev by Date: Re: Matrix rows
  • Next by Date: Re: Problem with limiits
  • Previous by thread: Re: Plot3D: plot does not display when PlotPoints different from 25. Mathematica 5.2
  • Next by thread: Re: Plot3D: plot does not display when PlotPoints different from 25. Mathematica 5.2