Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #7052

Dynamics activity "drainage"

From Chris Young <cy56@comcast.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Dynamics activity "drainage"
Date 2011-12-09 11:01 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jbsppu$3sd$1@smc.vnet.net> (permalink)

Show all headers | View raw


The plot at the bottom (with ParametricPlot3D) won't appear after 5 
minutes, at which point I aborted it. I've got a definition of f 
earlier in the file, but I can't figure out why I get a warning about 
"potentially harmful dynamic activity" (or something like that) when I 
open the file.

There's a notebook at http://home.comcast.net/~cy56/ComplexPlotProbs.nb
and a picture at http://home.comcast.net/~cy56/ComplexPlotProbs.png 
showing the constant yellow highlighting of the selection bar.

Chris Young
cy56@comcast.net

Clear[f];

f[1][z_] := z;
f[2][z_] := 3 Re[z] + 2 Im[z] I;
f[3][z_] := Cos[z];
f[4][z_] := Sin[z];

f[5][z_] := z^2;
f[6][z_] := (3 Re[z] + 2 Im[z] I)^2;
f[7][z_] := Cosh[z];
f[8][z_] := Sinh[z];

The following plots, but the selection bar to the right of the plot 
stays highlighted. Is some kind of evaluation going on all the time? 
Should I have the functions in a DynamicModule?

Manipulate[
 GraphicsGrid[
  Partition[
   Table[
    ContourPlot3D[
     z == Abs[f[k][x + y I]],
     {x, -\[Pi], \[Pi]}, {y, -\[Pi], \[Pi]}, {z, 0, 2 \[Pi]},

     AxesLabel -> {"x", "y", "z"},
     PlotRange -> {{-\[Pi], \[Pi]}, {-\[Pi], \[Pi]}, {0, 2 \[Pi]}},
     PlotPoints -> plotPts,
     BoxRatios -> 1,
     Mesh -> 12,
     MeshFunctions -> {
       ( {x, y} \[Function] Arg[f[k][x + y I]])
       },
     ColorFunctionScaling -> False,
     ColorFunction -> ({x, y} \[Function]
        Hue[\[LeftFloor]12 (Arg[f[k][x + y I]] + \[Pi])/(
           2 \[Pi])\[RightFloor]/12, 0.5, 1])
     ],
    {k, 1, 8}
    ],
   4
   ],
  ImageSize -> Large
  ],
 {{plotPts, 30}, 10, 50, 5}
 ]


Manipulate[
 GraphicsGrid[
  Partition[
   Table[
    ParametricPlot3D[
     {x, y, Abs[f[k][x + y I]]},
     {x, -\[Pi], \[Pi]}, {y, -\[Pi], \[Pi]},

     AxesLabel -> {"x", "y", "z"},
     PlotRange -> {{-\[Pi], \[Pi]}, {-\[Pi], \[Pi]}, {0, 2 \[Pi]}},
     PlotPoints -> plotPts,
     BoxRatios -> 1,
     Mesh -> 12,
     MeshFunctions -> {
       ( {x, y} \[Function] Arg[f[k][x + y I]])
       },
     ColorFunctionScaling -> False,
     ColorFunction -> ({x, y} \[Function]
        Hue[\[LeftFloor]12 (Arg[f[k][x + y I]] + \[Pi])/(
           2 \[Pi])\[RightFloor]/12, 0.5, 1])
     ],
    {k, 1, 8}
    ],
   4
   ],
  ImageSize -> Large
  ],
 {{plotPts, 30}, 10, 50, 5}
 ]

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Dynamics activity "drainage" Chris Young <cy56@comcast.net> - 2011-12-09 11:01 +0000

csiph-web