Re: A plot of Sign[x]
- To: mathgroup at smc.vnet.net
- Subject: [mg94139] Re: A plot of Sign[x]
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Fri, 5 Dec 2008 05:35:27 -0500 (EST)
- Organization: Uni Leipzig
- References: <gh8hjr$r0h$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
Hi, you think that your Mesh->number is the mesh that Mathematica use but this is not the case as to see from plt = Plot[Sign[x], {x, -5, 5}, Mesh -> 3, PlotRange -> All]; coords = plt[[1]] /. GraphicsComplex[pnts_, dta_, ___] :> ( pnts[[#]] & /@ Cases[dta, _Line, Infinity][[1, 1]] ); Show[plt, Prolog -> {RGBColor[1, 0, 0], Text["\[EmptyCircle]", #] & /@ coords}] Regards Jens Bert Aerts (rm X) wrote: > I tried to plot the Sign function, making clear that Sign[0]=0 by typing > Plot[Sign[x], {x, -5, 5}, Mesh -> 51, PlotRange -> All] > Making Mesh an odd value shows x=0. > > But the point at x=0 is being plot as 0.5 in stead of zero. > > What am I doing wrong? > > Mathematica 6.0.3 Linux x86_64 >