我想看一些依赖于参数n的函数的实部和虚部。单独地(设置值为n),我得到了非常漂亮的图形,但是当它们放在Manipulate中时,它们变得非常小。
这是我正在使用的确切代码;删除操纵和图形显示的大小,但有了它,它们太小,不易清晰。
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}]
为什么要这样做,我该如何解决?
答案 0 :(得分: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}]
修改
请记住,您也可以执行以下操作:
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]