学过Mathematica的人进!知道Plotlegend 的意思和作用吗?

来源:百度知道 编辑:UC知道 时间:2024/05/15 02:36:16
如题目~-~

实在不懂plotlegend是干嘛的。有没有它都能显示出图来,而且有时候输入它还会被当作是unknow。

plotlegend不是画函数图像的,它是画示意图的。
你看这个:
http://reference.wolfram.com/mathematica/PlotLegends/ref/PlotLegend.html
plotlegend的作用是画出左下角那个蓝线是sine,红线是cosine的说明的。

这个我会
〈〈Graphics`Legend`
Plot[{Sin[x],Sin[2x],Sin[3x]},PlotStyle->{GrayLevel[0.1],GrayLevel[.5],GrayLevel[.7]},PlotLegend->{a,b,c}]

PlotLegend在使用前要先上载Graphics~Legend~软件包,它的作用是给画出的图形标上记号