Creating Spectral Heat Maps or Intensity Maps from Cdip Data Using Ruby

Is it possible to create polar CountourPlot/ListCountourPlot/DensityPlot in Mathematica?

Previous snippets deleted, since this is clearly the best answer I came up with:

With[{eth = 2, er = 2, wc = 1, m = 4}, 
ContourPlot[
Re[BesselJ[(Sqrt[eth] m)/Sqrt[er], Sqrt[eth] r wc] Exp[I phi m]]/.
{r ->Norm[{x, y}], phi ->ArcTan[x, y]},
{x, -10, 10}, {y, -10, 10},
Contours -> 50, ContourLines -> False,
RegionFunction -> (#1^2 + #2^2 < 100 &),
ColorFunction -> "SunsetColors"
]
]

Sample Image

Edit

Replacing ContourPlot by Plot3D and removing the unsupported options you get:

Sample Image

How to shade a plot in Mathematica

Perhaps you are looking for RegionPlot?

RegionPlot[(-1 + x)^2 + (-1 + y)^2 < 1 && 
x^2 + (-1 + y)^2 < 1 && (-1 + x)^2 + y^2 < 1 && x^2 + y^2 < 1,
{x, 0, 1}, {y, 0, 1}]

Mathematica graphics



Related Topics



Leave a reply



Submit