【Mathematica入门】Plot函数图像的图例

2024-10-11 22:49:15

1、先来绘制两条曲线:Plot[{Sin[x^2/6], Cos[Sqrt[16*x]]}, {x, 0, 2 Pi}]

【Mathematica入门】Plot函数图像的图例

3、如果想要使用别的字符作为图例,需要专门指定:PlotLegends -> {"第1", "第2"}

【Mathematica入门】Plot函数图像的图例

5、如果想把图例放在图内某个具体的位置,需要指定其坐标:PlotLegends -> Placed[{"第1", "第2"}, {0.36, 0.25}]

【Mathematica入门】Plot函数图像的图例
猜你喜欢