Re: Plotting piecewise in 2D
- To: mathgroup at smc.vnet.net
- Subject: [mg109754] Re: Plotting piecewise in 2D
- From: Peter Pein <petsie at dordos.net>
- Date: Fri, 14 May 2010 19:58:39 -0400 (EDT)
- References: <hsj5c1$j42$1@smc.vnet.net>
Am Fri, 14 May 2010 09:32:49 +0000 (UTC) schrieb Jim Lambaugh <lambaugh at gmail.com>: > Hi > > Please take a look at > > DensityPlot[If[x == 0 && y == 0, 1000, 0], {x, -1, 1}, {y, -1, 1}] > > This just gives me a uniform plot. Why does the peak at (0,0) not show > up? > > Best, > Jimmy. > Because a point is too small for the real world ;-) Try: DensityPlot[If[Norm[{x, y}] <= 1*^-9, 1000, 0], {x, -1, 1}, {y, -1, 1}] hth, Peter