Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wolfram mathematica 如何阻止axis调整大小_Wolfram Mathematica_Plot - Fatal编程技术网

Wolfram mathematica 如何阻止axis调整大小

Wolfram mathematica 如何阻止axis调整大小,wolfram-mathematica,plot,Wolfram Mathematica,Plot,我用这个代码画了一条线: Manipulate[Plot[y = m (x - a) + b, {x, -10, 10}], {m, -10, 10}, {a, -10, 10}, {b, -10, 10}] 当我使用滑块更改m(直线的坡度)时,轴会重新调整大小,直线会向上或向下移动,并最终翻转,但我想看看在轴不移动和重新调整大小的情况下直线是如何旋转的。我该怎么办?默认情况下,mathematica中的所有Plot类型函数都具有属性PlotRange->Automatic。也就是说,它告诉

我用这个代码画了一条线:

Manipulate[Plot[y = m (x - a) + b, {x, -10, 10}],
 {m, -10, 10}, {a, -10, 10}, {b, -10, 10}]

当我使用滑块更改m(直线的坡度)时,轴会重新调整大小,直线会向上或向下移动,并最终翻转,但我想看看在轴不移动和重新调整大小的情况下直线是如何旋转的。我该怎么办?

默认情况下,mathematica中的所有
Plot
类型函数都具有属性
PlotRange->Automatic
。也就是说,它告诉Mathematica对给定函数的范围进行最佳猜测

由于每次更改
m
时都会重新计算绘图(因此也会重新计算绘图范围),因此它会更改显示的范围,从而导致您描述的行为

您需要做的是指定要提前打印的范围,以便它不会更改:

Manipulate[
  Plot[y = m (x - a) + b, {x, -10, 10}, PlotRange -> {-200, 200}]
  , {m, -10, 10}, {a, -10, 10}, {b, -10, 10}]
另外,你应该将未来的MMA问题发布到