mathematica如何给带边框的图像加上坐标

2025-02-25 13:58:33
推荐回答(3个)
回答1:

您可以使用 Mathematica 的 Plot 函数绘制图像,并在函数中使用 AxesLabel 和 Frame 参数给图像添加坐标轴和边框。
具体代码如下:
f[x_]:=x^2;
Plot[f[x],{x,-2,2}, AxesLabel->{"x","y"},Frame->True]
这样可以绘制一个 x^2 函数的图像,并在图像上添加了 x 和 y 轴的标签以及边框。

回答2:

Plot[... , Frame -> True, FrameLabel -> {"x", "y"}, FrameTicks -> {x轴汉字, y轴汉字}]

回答3:

是图像上的点的坐标还是坐标轴刻度? 是前者的话,每一个点的坐标都要标上吗?