将两块地块放在一个操纵处,同时保持地块可见

Vol*_*orm 3 wolfram-mathematica

我想看一些依赖于参数n的函数的实部和虚部.独立(与正的设定值),我得到完美漂亮的图形,但在操纵时,把他们,他们变得非常小.

这是我正在使用的确切代码; 删除操作和图形显示的大小,但有了它,它们太小,不易清晰.

Manipulate[
 Plot3D[Im[Sqrt[-1 + (x + I y)^2 n]], {x, -2, 2}, {y, -1, 1}, 
   AxesLabel -> Automatic]
  Plot3D[Re[Sqrt[-1 + (x + I y)^2 n]], {x, -2, 2}, {y, -2, 2}, 
   AxesLabel -> Automatic]
 , {n, 1, 10, 1}]
Run Code Online (Sandbox Code Playgroud)

为什么这样做,我该如何解决?

Dr.*_*ius 7

Manipulate[
 Row[{
   Plot3D[Im[Sqrt[-1 + (x + I y)^2 n]], {x, -2, 2}, {y, -1, 1}, 
          AxesLabel -> Automatic, ImageSize -> 300] , 
   Plot3D[Re[Sqrt[-1 + (x + I y)^2 n]], {x, -2, 2}, {y, -2, 2}, 
          AxesLabel -> Automatic, ImageSize -> 300]}], 
{n, 1, 10, 1}]
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

编辑

请记住,您可能还会执行以下操作:

a = Sequence @@{{x, -2, 2}, {y, -1, 1}, AxesLabel-> Automatic, ImageSize-> 200};
Manipulate[
 Row[{
   Plot3D[Im[Sqrt[-1 + (x + I y)^2 n]], Evaluate@a],
   Plot3D[Re[Sqrt[-1 + (x + I y)^2 n]], Evaluate@a]}],
 {n, 1, 10, 1}, 
 PreserveImageOptions -> False]
Run Code Online (Sandbox Code Playgroud)

  • @Alexey我发现如果没有指定它,当你重新运行一个单元格中的代码时,前一次运行的图已经存在,有时候新的图表会"继承"你在旧图上做的最后一个动作的参数,所以很难检测新参数的"干净"显示.这是通过"PreserveImageOptions - > False"解决的 (3认同)
  • @Sjoerd它还没有出现,但明天会出现在belisarius的徽章中.它是Mathematica标签的金徽章,有史以来第一次.截至昨天,我有4个问题,belisarius - 10或者其他东西.截至目前,我仍然有3个问题,而belisarius只是得到了它所需要的一切.应该今晚给他奖励,但为什么不现在开始庆祝? (2认同)