|
SOLUTIONS
|
MATHEMATICA 内置符号
ListPlot[{y1, y2, ...}]
绘制值列表. 每个点的 x 坐标取为 1、2、... .
ListPlot[{{x1, y1}, {x2, y2}, ...}]
绘制有指定 x 和 y 坐标的值列表.
ListPlot[{list1, list2, ...}]
绘制点的几个列表.
更多信息更多信息
- ListPlot 和 Graphics 有相同的选项,附加下面的选项:
-
AspectRatio 1/GoldenRatio 高宽比 Axes True 是否绘制轴 DataRange Automatic 数据采用 x 值的范围 Filling None 从轴到每个点的填充 FillingStyle Automatic 填充使用的样式 Joined False 是否连接点 PerformanceGoal $PerformanceGoal 优化执行的方面 PlotLegends None 数据集的图例 PlotMarkers None 用于指明每个点的标记 PlotRange Automatic 包含的值范围 PlotRangeClipping True 是否在绘图范围剪辑 PlotStyle Automatic 确定每条直线样式的图形指令 - ListPlot[{list1, list2, ...}] 缺省使用不同的颜色来指定不同
中的点. - 交互标签能指定用于点或者使用 Tooltip、StatusArea 或 Annotation 的点的列表.
- Tooltip[yi] 或 Tooltip[{xi, yi}] 表示一个点的坐标应显示在其工具提示中.
- Tooltip[list] 指定应对列表中的所有点显示坐标工具提示.
- Tooltip[list, label] 对 list 所有点指定的工具提示标签.
- PlotLegends 的典型设置包括:
-
None 不使用图例 Automatic 自动确定图例 {lbl1,lbl2,...} 使用
,
, ... 作为图例标签Placed[lspec,...] 指定图例位置 - Legended[list, label] 给出由 list 定义的点的指定图例标签.
- ListPlot[list, Joined->True] 绘制连接数据的线,类似 ListLinePlot[list].
- ListPlot[{list1, list2, ...}, Joined->{s1, s2, ...}] 指定
,确定是否连接每个
中的点. - 如果 Joined->True,ListPlot 使用 ListLinePlot 的附加选项.
- ListPlot[{list1, list2, ...}] 在缺省情况下对
中的连续值采用 x 作为连续整数,从 1 开始. - 设置 DataRange->{xmin, xmax} 指定使用 x 坐标的其它范围,其中
与最长
的最后一个元素相关的. - 缺省设置 DataRange->Automatic,ListPlot[{{a11, a12}, ..., {an1, an2}}] 给出 n 个单个点的 x 和 y,而不是 n 个包含两个点的单个数据集的 y 值.
- ListPlot[list, DataRange->All] 通常用 list 来表示数据集合的列表.
可以是 SparseArray 对象.- 设置 PlotStyle->{style1, style2, ...},
循环用于确定每个
中点的样式. - ListPlot 返回 Graphics[{Point[...], ...}]、Graphics[{Inset[...], ...}] 等.
版本 1 的新功能 | 版本 9 修改功能
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »




