Wolfram 语言

可视化:标签、缩放和排除

新标签系统

使用 PlotLabels 选项自动把表达式作为标签.

In[1]:=
Click for copyable input
options = {ImageSize -> 500, PlotTheme -> {"Web", "LargeLabels"}};
In[2]:=
Click for copyable input
Plot[Evaluate[Table[Log[x] Sin[i x], {i, 1, 5}]], {x, 0, 3}, PlotLabels -> Automatic, ImageSize -> 500, PlotTheme -> {"Web", "LargeLabels"}]
Out[2]=

使用 Labeled 封装将标签放置于曲线附近.

In[3]:=
Click for copyable input
Plot[Evaluate[ Table[Labeled[BesselY[i, x], BesselY[i, x], Above], {i, 0, 4}]], {x, 2, 8}, ImageSize -> 500, PlotTheme -> {"Web", "LargeLabels"}]
Out[3]=

Callout 封装使标签指向曲线.

In[4]:=
Click for copyable input
Plot[Evaluate@ Table[Callout[BesselJ[i, x], BesselJ[i, x], Above], {i, 1, 6}], {x, 0, 8}, ImageSize -> 500, PlotTheme -> {"Web", "LargeLabels"}]
Out[4]=

相关范例

de en es fr ja ko pt-br ru