PointFigureChart[{{date1,p1},{date2,p2},…}]
生成一个点数图,其中在日期 datei 的价格为 pi.
PointFigureChart[{"name",daterange}]
生成一个点数图,由在日期范围 daterange 内金融实体 "name" 的收盘价格组成.
PointFigureChart[{…},s,n]
生成一个点数图,其中点和形的高度为 s 并且有 n 个反转.
PointFigureChart
PointFigureChart[{{date1,p1},{date2,p2},…}]
生成一个点数图,其中在日期 datei 的价格为 pi.
PointFigureChart[{"name",daterange}]
生成一个点数图,由在日期范围 daterange 内金融实体 "name" 的收盘价格组成.
PointFigureChart[{…},s,n]
生成一个点数图,其中点和形的高度为 s 并且有 n 个反转.
更多信息和选项
- 一个点数图以具有不同方向的一系列柱绘制. 持续一个趋势的变动以固定大小的增量绘制. 当方向变化 n 个单位时,绘制一个新的列.
- 对价格范围的3%和3个反转,PointFigureChart[…] 等价于 PointFigureChart[…,{"Relative",0.03},3].
- 以下变量可以用来指定步骤 s:
-
{"Relative",p} 价格范围比率(默认) {"Absolute",p} 绝对价格变动 - 日期 datei 被认为是事件的有序序列,并且不以绝对时间度量显示.
- datei 的日期格式与 DateListPlot 中所用的相同.
- "name" 和 daterange 与 FinancialData 中所用的相同.
- PointFigureChart 的数据元素可以以如下形式给出:
-
{datei,pi} 一个纯日期价格对 {datei,Quantity[pi,ui]} 带有单位的日期价格数据对 wi[{datei,pi},…] 一个日期价格对和封装 wi formi->mi 一个具有元数据 mi 的日期价格对 - 一个点数图元素可能表示若干个日期-价格对,并且相应的封装将应用于整个图表元素.
- 不以这些形式给出的数据作为缺失数据处理,并且通常当产生图表时,被排除.
- PointFigureChart 的日期可以以如下形式给出:
-
{e1,e2,…} 具有或不具有封装的元素列表 TimeSeries[…],EventSeries[…],TemporalData[…] 时间序列、事件序列和暂态数据 w[{e1,e2,…}] 应用于整个数据的封装 - PointFigureChart[Tabular[…]cspec] extracts and plots values from the tabular object using the column specification cspec.
- The following forms of column specifications cspec are allowed for plotting tabular data:
-
{coldate,colp} plot values from column colp against dates from coldate - 以下封装可以用于数据元素:
-
Annotation[e,label] 提供一个标注 Button[e,action] 当元素被点击时,定义要执行的操作 EventHandler[e,…] 对元素定义一个通用事件句柄 Hyperlink[e,uri] 使元素作为超链接使用 Labeled[e,…] 使用标签显示元素 PopupWindow[e,cont] 对元素附加一个弹出窗口 StatusArea[e,label] 当鼠标移到该元素时,显示在状态栏中 Style[e,opts] 显示使用指定样式的元素 Tooltip[e,label] 对元素附加一个任意的工具提示条 - 在 PointFigureChart 中,Labeled 和 Placed 允许采用以下位置:
-
Top,Bottom,Left,Right,Center 在点或形中的位置 Above, Below, Before, After 在点或形外的位置 {{bx,by},{lx,ly}} 在点或形中在尺度缩放后的位置 {bx,by} 上的尺度缩放位置{lx,ly} - PointFigureChart 具有和 Graphics 相同的选项,另外有以下添加和变动: [所有选项的列表]
-
AspectRatio Automatic 高宽整体比率 Axes True 是否绘制轴 ChartBaseStyle Automatic 柱的整体样式 ChartElementFunction Automatic 如何对点形柱生成原始图形 ChartElements Automatic 在每个点和形中使用的图像 DateFunction Automatic 如何把日期转化为标准形式 EventLabels None 需要添加标签的事件 GridLines Automatic 需要绘制的网格线 GridLinesStyle Automatic 网格线的样式 PerformanceGoal $PerformanceGoal 尝试优化哪些方面的性能 PlotTheme $PlotTheme 图表的整体外观主题 TrendStyle Automatic 如何对上涨趋势和下跌趋势进行样式化处理 ScalingFunctions None 如何对
轴进行尺度缩放TargetUnits Automatic 显示在图表中的单位 - 提供给 ChartElementFunction 的变量是柱区域 {{xmin,xmax},{ymin,ymax}}、日期-价格对 list 以及元数据 {m1,m2,…}.
- ChartElementFunction 的内置设置列表可以从 ChartElementData["PointFigureChart"] 得到.
- 使用设置 ChartElements->{up,down} 时,up 和 down 将分别用于形和点.
- EventLabels->{…,datei->lbli,…} 指定与 datei 相关联的一个标签. 该标签将与具有包含 datei 的数据范围的点或形一起显示.
- 在 ScalingFunctions->sy 下,对价格应用函数 sy. ScalingFunctions 只影响显示,而不影响其它控件.
- PointFigureChart 中选项和其它结构的样式和其它指定实际上以 TrendStyle、Style 和其它封装,以及 ChartElementFunction 的顺序应用,后面的指定覆盖前面的指定.
所有选项的列表
范例
打开所有单元 关闭所有单元基本范例 (4)
data = FinancialData["JPM", "Close", {{2009, 5, 1}, {2010, 4, 30}}];PointFigureChart[data]使用来自 FinancialData 实体的三个月价格:
PointFigureChart["^GSPC"]PointFigureChart[{"^GSPC", {{2009, 1, 1}, {2009, 12, 31}}}]PointFigureChart[{"^GSPC", {{2009, 1, 1}, {2009, 12, 31}}}, 0.01]范围 (28)
数据和封装 (16)
PointFigureChart["DOW"]PointFigureChart[{"IBM", {{2009, 10, 1}, {2010, 3, 31}}}]从 FinancialData 中获得数据:
data = FinancialData["MSFT", {{2009, 6, 1}, {2009, 12, 1}}];PointFigureChart[data]Table[PointFigureChart[{"IBM", {{2009, 10}, {2010, 2}}}, i, PlotLabel -> i], {i, {Automatic, {"Relative", 0.03}}}]Table[PointFigureChart[{"IBM", {{2009, 10}, {2010, 2}}}, {"Relative", i}, PlotLabel -> i], {i, {0.01, 0.03}}]Table[PointFigureChart["AAPL", bs, PlotLabel -> bs], {bs, {{"Absolute", 1}, {"Absolute", 2}}}]Table[PointFigureChart[{"AAPL", {{2009, 10}, {2010, 2}}}, 0.01, n, PlotLabel -> n], {n, {3, 5}}]data = FinancialData["AAPL", {{2010, 1, 1}, {2010, 2, 28}}];PointFigureChart[data, AxesLabel -> Automatic]data = FinancialData["AAPL", {{2010, 1, 1}, {2010, 2, 28}}];PointFigureChart[data, AxesLabel -> Automatic, TargetUnits -> "Euros"]数据形式可以是 TimeSeries、EventSeries 或 TemporalData:
data = EventSeries[FinancialData["BAC", {{2014, 1}, {2014, 4}}]]PointFigureChart[data]PointFigureChart[{{{2010, 1, 4}, 130.54}, {{2010, 1, 5}, 128.96}, {{2010, 1, 6}, 128.13}, Style[{{2010, 1, 7}, 127.68}, FaceForm[Yellow]], {{2010, 1, 8}, 128.96}, {{2010, 1, 11}, 127.61}, {{2010, 1, 12}, 128.63}, {{2010, 1, 13}, 128.35}, {{2010, 1, 14}, 130.4}, {{2010, 1, 15}, 129.88}, {{2010, 1, 19}, 132.21}, {{2010, 1, 20}, 128.37}}]PointFigureChart[Style[{{{2010, 1, 4}, 130.54}, {{2010, 1, 5}, 128.96}, {{2010, 1, 6}, 128.13}, {{2010, 1, 7}, 127.68}, {{2010, 1, 8}, 128.96}, {{2010, 1, 11}, 127.61}, {{2010, 1, 12}, 128.63}, {{2010, 1, 13}, 128.35}, {{2010, 1, 14}, 130.4}, {{2010, 1, 15}, 129.88}, {{2010, 1, 19}, 132.21}, {{2010, 1, 20}, 128.37}}, EdgeForm[Dashed]]]PointFigureChart[Style[{{{2010, 1, 4}, 130.54}, {{2010, 1, 5}, 128.96}, {{2010, 1, 6}, 128.13}, Style[{{2010, 1, 7}, 127.68}, FaceForm[Yellow]], {{2010, 1, 8}, 128.96}, {{2010, 1, 11}, 127.61}, {{2010, 1, 12}, 128.63}, {{2010, 1, 13}, 128.35}, {{2010, 1, 14}, 130.4}, {{2010, 1, 15}, 129.88}, {{2010, 1, 19}, 132.21}, {{2010, 1, 20}, 128.37}}, EdgeForm[Dashed]]]PointFigureChart[{{{2010, 1, 4}, 130.54}, {{2010, 1, 5}, 128.96}, {{2010, 1, 6}, 128.13}, Tooltip[{{2010, 1, 7}, 127.68}, "label"], {{2010, 1, 8}, 128.96}, {{2010, 1, 11}, 127.61}, {{2010, 1, 12}, 128.63}, {{2010, 1, 13}, 128.35}, {{2010, 1, 14}, 130.4}, {{2010, 1, 15}, 129.88}, {{2010, 1, 19}, 132.21}, {{2010, 1, 20}, 128.37}}]使用 PopupWindow 提供额外的细目信息:
PointFigureChart[PopupWindow[{{{2010, 1, 4}, 130.54}, {{2010, 1, 5}, 128.96}, {{2010, 1, 6}, 128.13}, {{2010, 1, 7}, 127.68}, {{2010, 1, 8}, 128.96}, {{2010, 1, 11}, 127.61}, {{2010, 1, 12}, 128.63}, {{2010, 1, 13}, 128.35}, {{2010, 1, 14}, 130.4}, {{2010, 1, 15}, 129.88}, {{2010, 1, 19}, 132.21}, {{2010, 1, 20}, 128.37}}, TradingChart["AAPL"]]]Button 可用于出动任何动作:
PointFigureChart[{{{2010, 1, 4}, 130.54}, {{2010, 1, 5}, 128.96}, {{2010, 1, 6}, 128.13}, Button[{{2010, 1, 7}, 127.68}, Speak["Close at 127.68"]], {{2010, 1, 8}, 128.96}, {{2010, 1, 11}, 127.61}, {{2010, 1, 12}, 128.63}, {{2010, 1, 13}, 128.35}, {{2010, 1, 14}, 130.4}, {{2010, 1, 15}, 129.88}, {{2010, 1, 19}, 132.21}, {{2010, 1, 20}, 128.37}}]表格数据 (1)
stock = ToTabular[IconizedObject[«stock data»], "Columns", <|"ColumnKeys" -> {"date", "open", "high", "low", "close", "volume"}|>]PointFigureChart[stock -> {"date", "high"}]PointFigureChart[stock -> {"date", "high"}, {"Relative", 0.01}]样式和外观 (8)
PointFigureChart[{"IBM", {{2010, 1, 1}, {2010, 1, 15}}}, TrendStyle -> {Green, Red}]PointFigureChart[{"IBM", {{2010, 1, 1}, {2010, 1, 15}}}, TrendStyle -> "RedGreen"]PointFigureChart[{"IBM", {{2010, 1, 1}, {2010, 1, 15}}}, TrendStyle -> "BlackWhite"]PointFigureChart[{"IBM", {{2010, 1, 1}, {2010, 6, 30}}}, 0.05, ChartElements -> "PointFigure", AspectRatio -> Automatic]PointFigureChart[{"IBM", {{2010, 1, 1}, {2010, 6, 30}}}, 0.1, ChartElements -> {[image], [image]}, AspectRatio -> Automatic]ChartBaseStyle 可用于为所有图表元素设置样式:
PointFigureChart[{"IBM", {{2010, 1, 1}, {2010, 1, 15}}}, TrendStyle -> {Green, Red}, ChartBaseStyle -> EdgeForm[StandardGray]]Style 可用于覆盖样式:
PointFigureChart[Style[{{{2010, 1, 4}, 130.54}, {{2010, 1, 5}, 128.96}, {{2010, 1, 6}, 128.13}, {{2010, 1, 7}, 127.68}, {{2010, 1, 8}, 128.96}, {{2010, 1, 11}, 127.61}, {{2010, 1, 12}, 128.63}, {{2010, 1, 13}, 128.35}, {{2010, 1, 14}, 130.4}, {{2010, 1, 15}, 129.88}, {{2010, 1, 19}, 132.21}, {{2010, 1, 20}, 128.37}}, EdgeForm[None]], ChartBaseStyle -> EdgeForm[Dashed]]ChartElementData["PointFigureChart"]{"ArrowRectangle", "FadingRectangle", "GlassRectangle", "GradientRectangle", "GradientScaleRectangle", "ObliqueRectangle", "Rectangle", "SegmentScaleRectangle", "StripedRectangle"}Table[PointFigureChart[{"IBM", {{2010, 1, 1}, {2010, 1, 15}}}, ChartElementFunction -> f], {f, {"FadingRectangle", "GlassRectangle"}}]PointFigureChart[{"JPM", {{2010, 4, 1}, {2010, 5, 13}}}, PlotTheme -> "Business"]PointFigureChart[{"JPM", {{2010, 4, 1}, {2010, 5, 13}}}, PlotTheme -> "Marketing"]标签 (3)
使用 Labeled 为烛柱图增加标签:
PointFigureChart[{{{2010, 1, 4}, 130.54}, {{2010, 1, 5}, 128.96}, {{2010, 1, 6}, 128.13}, {{2010, 1, 7}, 127.68}, {{2010, 1, 8}, 128.96}, {{2010, 1, 11}, 127.61}, {{2010, 1, 12}, 128.63}, {{2010, 1, 13}, 128.35}, {{2010, 1, 14}, 130.4}, {{2010, 1, 15}, 129.88}, Labeled[{{2010, 1, 19}, 132.21}, "label"], {{2010, 1, 20}, 128.37}}]Table[PointFigureChart[{{{2010, 1, 4}, 130.54}, {{2010, 1, 5}, 128.96}, {{2010, 1, 6}, 128.13}, {{2010, 1, 7}, 127.68}, {{2010, 1, 8}, 128.96}, {{2010, 1, 11}, 127.61}, {{2010, 1, 12}, 128.63}, {{2010, 1, 13}, 128.35}, {{2010, 1, 14}, 130.4}, {{2010, 1, 15}, 129.88}, Labeled[{{2010, 1, 19}, 132.21}, "label", p], {{2010, 1, 20}, 128.37}}], {p, {Above, Below, Before, After}}]PointFigureChart[{"IBM", {{2010, 1, 1}, {2010, 1, 15}}}, EventLabels -> {{2010, 1, 5} -> "label1", {2010, 1, 8} -> "label2", {2010, 1, 14} -> "label3"}]使用 Placed 控制标签位置,使用与 Labeled 同样的位置:
PointFigureChart[{"IBM", {{2010, 1, 1}, {2010, 1, 15}}}, EventLabels -> {{2010, 1, 7} -> Placed["label1", Center], {2010, 1, 14} -> Placed["label2", Above]}]选项 (60)
AspectRatio (4)
默认情况下,PointFigureChart 在绘图中使用固定的高宽比:
PointFigureChart[{"USO", {{2019, 1, 1}, {2021, 1, 1}}}]通过 AspectRatio1 使高等和宽度相等:
PointFigureChart[{"USO", {{2019, 1, 1}, {2021, 1, 1}}}, AspectRatio -> 1]AspectRatioAutomatic 根据绘图范围确定高宽比:
PointFigureChart[{"USO", {{2019, 1, 1}, {2021, 1, 1}}}, AspectRatio -> Automatic]AspectRatioFull 调整高度和宽度以便可以恰当地放在其他结构的里面:
plot = PointFigureChart[{"USO", {{2019, 1, 1}, {2021, 1, 1}}}, AspectRatio -> Full];{Framed[Pane[plot, {70, 100}]], Framed[Pane[plot, {150, 150}]], Framed[Pane[plot, {150, 75}]]}Axes (3)
PointFigureChart[{"DOW", {{2019, 1, 1}, {2020, 4, 30}}}]PointFigureChart[{"DOW", {{2019, 1, 1}, {2020, 4, 30}}}, Axes -> False]{PointFigureChart[{"DOW", {{2019, 1, 1}, {2020, 4, 30}}}, Axes -> {True, False}], PointFigureChart[{"DOW", {{2019, 1, 1}, {2020, 4, 30}}}, Axes -> {False, True}]}AxesOrigin (3)
PointFigureChart[{"SP500", {{2010, 1, 15}, {2010, 2, 27}}}]PointFigureChart[{"SP500", {{2010, 1, 15}, {2010, 2, 27}}}, AxesOrigin -> {{2010, 2, 28}, Automatic}]Table[PointFigureChart[{"SP500", {{2010, 1, 15}, {2010, 2, 27}}}, AxesOrigin -> {i, Automatic}, PlotLabel -> i], {i, {Left, Right}}]AxesStyle (3)
PointFigureChart[{"Dow", {{2019, 1, 1}, {2020, 4, 30}}}, AxesStyle -> Red]PointFigureChart[{"DOW", {{2019, 1, 1}, {2020, 4, 30}}}, AxesStyle -> {Directive[Blue], Directive[Red]}]PointFigureChart[{"DOW", {{2019, 1, 1}, {2020, 4, 30}}}, AxesStyle -> Green, TicksStyle -> Red]ChartBaseStyle (4)
用 ChartBaseStyle 来指定点数图的样式:
PointFigureChart[{"IBM", {{2010, 3}, {2010, 5}}}, ChartBaseStyle -> EdgeForm[Dashed]]PointFigureChart[{"IBM", {{2010, 3}, {2010, 5}}}, ChartBaseStyle -> Opacity[0.5]]ChartBaseStyle 与 TrendStyle 相组合:
PointFigureChart[{"IBM", {{2010, 3}, {2010, 5}}}, TrendStyle -> {Green, Red}, ChartBaseStyle -> EdgeForm[Dashed]]ChartStyle 可能会覆盖 ChartBaseStyle 的设置:
PointFigureChart[{"IBM", {{2010, 3}, {2010, 5}}}, TrendStyle -> {Directive[EdgeForm[], Green], Directive[EdgeForm[], Red]}, ChartBaseStyle -> EdgeForm[Dashed]]Style 可能会覆盖 ChartBaseStyle 的设置:
PointFigureChart[Style[{{{2010, 2, 1}, 123.48}, {{2010, 2, 2}, 124.33}, {{2010, 2, 3}, 124.46}, {{2010, 2, 4}, 121.83}, {{2010, 2, 5}, 122.34}, {{2010, 2, 8}, 121.26}, {{2010, 2, 9}, 122.58}, {{2010, 2, 10}, 122.18}, {{2010, 2, 11}, 123.1}, {{2010, 2, 12}, 123.37}, {{2010, 2, 16}, 124.59}, {{2010, 2, 17}, 125.69}, {{2010, 2, 18}, 127.16}, {{2010, 2, 19}, 126.54}, {{2010, 2, 22}, 126.2}, {{2010, 2, 23}, 125.82}, {{2010, 2, 24}, 126.94}, {{2010, 2, 25}, 126.42}, {{2010, 2, 26}, 126.51}}, EdgeForm[Blue]], 0.03, ChartBaseStyle -> EdgeForm[Dashed]]ChartElementFunction (3)
获得 ChartElementFunction 内置设置列表:
ChartElementData["PointFigureChart"]Table[PointFigureChart[{"IBM", {{2009, 11, 1}, {2010, 5, 20}}}, ChartElementFunction -> f, PlotLabel -> f], {f, {"ArrowRectangle", "ObliqueRectangle"}}]Table[PointFigureChart[{"IBM", {{2009, 11, 1}, {2010, 5, 20}}}, ChartElementFunction -> f, PlotLabel -> f], {f, {"FadingRectangle", "GlassRectangle"}}]ChartElementFunction 表示出全局尺度:
Table[PointFigureChart[{"IBM", {{2009, 11, 1}, {2010, 5, 20}}}, ChartElementFunction -> f, PlotLabel -> f], {f, {"GradientScaleRectangle", "SegmentScaleRectangle"}}]编写自定义的 ChartElementFunction:
f[{{xmin_, xmax_}, {ymin_, ymax_}}, ___] := Rectangle[{xmin, ymin}, {xmax, ymax}, RoundingRadius -> Offset[3]]PointFigureChart[{"IBM", {{2009, 11, 1}, {2010, 5, 20}}}, ChartElementFunction -> f]ChartElements (7)
对点和形使用任意 Graphics 对象:
PointFigureChart[{"IBM", {{2009, 11, 1}, {2010, 5, 20}}}, 0.06, ChartElements -> Graphics[Disk[]]]PointFigureChart[{"IBM", {{2009, 11, 1}, {2010, 5, 20}}}, 0.06, ChartElements -> {Graphics[Disk[]], Graphics[Circle[]]}]Table[PointFigureChart[{"IBM", {{2009, 11, 1}, {2010, 5, 20}}}, {"Absolute", s}, ChartElements -> Graphics[Disk[]]], {s, {1, 2.5}}]图形元素从 TrendStyle 中选择样式:
PointFigureChart[{"IBM", {{2010, 1, 1}, {2010, 6, 30}}}, 0.05, ChartElements -> {[image], [image]}, AspectRatio -> Automatic]PointFigureChart[{"IBM", {{2010, 1, 1}, {2010, 6, 30}}}, 0.05, ChartElements -> {Graphics3D[Cone[{{0, 0, -1}, {0, 0, 1}}, 1], Boxed -> False, Lighting -> "Neutral"], Graphics3D[Cone[{{0, 0, 1}, {0, 0, -1}}, 1], Boxed -> False, Lighting -> "Neutral"]}, AspectRatio -> Automatic]PointFigureChart[{"IBM", {{2010, 1, 1}, {2010, 6, 30}}}, 0.1, ChartElements -> {ImageResize[ExampleData[{"Texture", "Wood3"}], 30], ImageResize[ExampleData[{"Texture", "Wood2"}], 30]}, AspectRatio -> Automatic]PointFigureChart[{"IBM", {{2010, 1, 1}, {2010, 6, 30}}}, 0.05, ChartElements -> "PointFigure", AspectRatio -> Automatic]PointFigureChart[{"IBM", {{2009, 11, 1}, {2010, 5, 20}}}, 0.05, ChartElements -> {[image], All}]EventLabels (3)
PointFigureChart[{"IBM", {{2009, 11, 1}, {2010, 5, 20}}}, EventLabels -> {{2010, 1, 6} -> "●"}]FinancialData["IBM", "RawClose", {{2010, 1, 6}}]使用 Placed 控制标签放置:
Table[PointFigureChart[{"IBM", {{2009, 11, 1}, {2010, 5, 20}}}, EventLabels -> {{2010, 5, 5} -> Placed["label", i]}, PlotLabel -> i], {i, {Above, Below, Before, After}}]使用 Placed 控制标签外观:
Table[PointFigureChart[{"IBM", {{2009, 11, 1}, {2010, 5, 20}}}, EventLabels -> {{2010, 1, 22} -> Placed["label", Automatic, s]}], {s, {Style[#, 24]&, Framed, Panel, "GlassBubble"}}]GridLines (4)
PointFigureChart[{"IBM", {{2009, 11, 1}, {2010, 5, 20}}}]PointFigureChart[{"IBM", {{2009, 10, 1}, {2009, 12, 31}}}, GridLines -> {None, Automatic}]PointFigureChart[{"IBM", {{2009, 10, 1}, {2009, 12, 31}}}, GridLines -> {Automatic, None}]Table[PointFigureChart[{"IBM", {{2009, 10}, {2010, 5}}}, GridLines -> {i, Automatic}], {i, {"Month", "Year"}}]PointFigureChart[{"IBM", {{2009, 10}, {2010, 3}}}, GridLines -> {{{"Year", Directive[Dashing[{}], Red]}, "Month"}, Automatic}]GridLinesStyle (3)
默认情况下,GridLinesStyle 使用点网格线,同时突出显示年网格线:
PointFigureChart[{"IBM", {{2009, 1, 1}, {2010, 5, 20}}}]PointFigureChart[{"IBM", {{2009, 1, 1}, {2010, 5, 20}}}, GridLines -> {"Month", Automatic}, GridLinesStyle -> {Blue, Dotted}]GridLines 覆盖 GridLinesStyle 的设置:
PointFigureChart[{"IBM", {{2009, 1, 1}, {2010, 5, 20}}}, GridLines -> {{{"Month", Blue}}, None}, GridLinesStyle -> Red]ImageSize (7)
使用已命名尺寸,如 Tiny、Small、Medium 和 Large:
{PointFigureChart[{"USO", {{2019, 1, 1}, {2021, 1, 1}}}, ImageSize -> Tiny], PointFigureChart[{"USO", {{2019, 1, 1}, {2021, 1, 1}}}, ImageSize -> Small]}{PointFigureChart[{"USO", {{2019, 1, 1}, {2021, 1, 1}}}, ImageSize -> 150], PointFigureChart[{"USO", {{2019, 1, 1}, {2021, 1, 1}}}, AspectRatio -> 1.5, ImageSize -> 150]}{PointFigureChart[{"USO", {{2019, 1, 1}, {2021, 1, 1}}}, ImageSize -> {Automatic, 150}], PointFigureChart[{"USO", {{2019, 1, 1}, {2021, 1, 1}}}, AspectRatio -> 2, ImageSize -> {Automatic, 150}]}{PointFigureChart[{"USO", {{2019, 1, 1}, {2021, 1, 1}}}, ImageSize -> UpTo[200]], PointFigureChart[{"USO", {{2019, 1, 1}, {2021, 1, 1}}}, AspectRatio -> 2, ImageSize -> UpTo[200]]}PointFigureChart[{"USO", {{2019, 1, 1}, {2021, 1, 1}}}, ImageSize -> {200, 200}, Background -> StandardGray]设置 AspectRatioFull 将填充可用空间:
PointFigureChart[{"USO", {{2019, 1, 1}, {2021, 1, 1}}}, AspectRatio -> Full, ImageSize -> {200, 200}, Background -> StandardGray]{PointFigureChart[{"USO", {{2019, 1, 1}, {2021, 1, 1}}}, ImageSize -> {UpTo[150], UpTo[100]}], PointFigureChart[{"USO", {{2019, 1, 1}, {2021, 1, 1}}}, AspectRatio -> 2, ImageSize -> {UpTo[150], UpTo[100]}]}Framed[Pane[PointFigureChart[{"USO", {{2019, 1, 1}, {2021, 1, 1}}}, ImageSize -> Full, Background -> StandardGray], {200, 100}]]Framed[Pane[PointFigureChart[{"USO", {{2019, 1, 1}, {2021, 1, 1}}}, AspectRatio -> Full, ImageSize -> {Scaled[0.5], Scaled[0.5]}, Background -> StandardGray], {200, 200}]]PerformanceGoal (3)
产生具有互动高亮的 PointFigureChart:
PointFigureChart[{"IBM", {{2009, 10, 1}, {2010, 5, 20}}}, PerformanceGoal -> "Quality"]PointFigureChart[{"IBM", {{2009, 10, 1}, {2010, 5, 20}}}, PerformanceGoal -> "Speed"]Table[ByteCount@PointFigureChart[{"IBM", {{2009, 10, 1}, {2010, 5, 20}}}, PerformanceGoal -> p], {p, {"Quality", "Speed"}}]PlotRange (3)
PointFigureChart 自动绘制所有价格日期对:
PointFigureChart[{"JPM", {{2010, 2}, {2010, 5}}}, 0.01]PointFigureChart[{"JPM", {{2010, 2}, {2010, 5}}}, 0.01, PlotRange -> {{{2010, 3, 1}, {2010, 4, 15}}, Automatic}]PlotRange 仅包括存在数据的日期:
PointFigureChart[{"JPM", {{2010, 2, 1}, {2010, 3, 31}}}, 0.01, PlotRange -> {{{2010, 2, 1}, {2010, 4, 30}}, Automatic}]PlotTheme (2)
ScalingFunction (2)
TrendStyle (6)
默认情况下,TrendStyle 对上行趋势使用绿色,对下行趋势使用红色:
PointFigureChart[{"IBM", {{2009, 10, 1}, {2010, 5, 20}}}]PointFigureChart[{"IBM", {{2009, 10, 1}, {2010, 5, 20}}}, TrendStyle -> {StandardGray, Red}]Table[PointFigureChart[{"IBM", {{2009, 10, 1}, {2010, 5, 20}}}, TrendStyle -> ts, PlotLabel -> ts], {ts, {"BlueYellow", "PurpleGold", "BrownYellow", "Blue", "Gold", "BlackSilver"}}]TrendStyle 与 ChartBaseStyle 联合使用:
PointFigureChart[{"IBM", {{2009, 10, 1}, {2010, 5, 20}}}, TrendStyle -> {EdgeForm[Green], EdgeForm[Red]}, ChartBaseStyle -> FaceForm[]]将 TrendStyle 设置为 None,对上行趋势使用基本线条,对下行趋势使用空柱:
PointFigureChart[{"IBM", {{2009, 10, 1}, {2010, 5, 20}}}, TrendStyle -> None]TrendStyle->style 对上行趋势使用 style,对下行趋势使用空柱:
PointFigureChart[{"IBM", {{2009, 10, 1}, {2010, 5, 20}}}, TrendStyle -> Purple]属性和关系 (8)
Table[PointFigureChart[{"IBM", {{2009, 10}, {2010, 2}}}, i, PlotLabel -> i], {i, {0.01, 0.03}}]Table[PointFigureChart[{"IBM", {{2009, 10}, {2010, 2}}}, 0.01, n, PlotLabel -> n], {n, {3, 5}}]PointFigureChart 只显示价格具有显著变化的时间周期:
FinancialData["IBM", "Close", {"Jan 1, 2010", "Jan 31, 2010", "Day"}]PointFigureChart[{"IBM", {"Jan 1, 2010", "Jan 31, 2010"}}]使用 CandlestickChart 可视化金融数据:
CandlestickChart[{"AAPL", {{2010, 1, 1}, {2010, 5, 31}}}]使用 TradingChart 可视化和分析金融数据:
TradingChart[{"AAPL", {{2010, 1, 1}, {2010, 6, 1}}}, {"SMA", "V"}]
| |
使用 InteractiveTradingChart 可视化和互动分析金融数据:
InteractiveTradingChart[{"AAPL", {{2009, 6, 1}, {2010, 6, 1}}}]使用 RenkoChart、LineBreakChart 和 KagiChart 分析金融价格和时间的关系:
{RenkoChart["DOW"], LineBreakChart["DOW"], KagiChart["DOW"]}使用 DateListPlot 可视化金融数据:
DateListPlot[FinancialData["MSFT", {{2010, 1, 1}, {2010, 6, 1}}]]相关指南
-
▪
- 金融可视化
文本
Wolfram Research (2010),PointFigureChart,Wolfram 语言函数,https://reference.wolfram.com/language/ref/PointFigureChart.html (更新于 2025 年).
CMS
Wolfram 语言. 2010. "PointFigureChart." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2025. https://reference.wolfram.com/language/ref/PointFigureChart.html.
APA
Wolfram 语言. (2010). PointFigureChart. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/PointFigureChart.html 年
BibTeX
@misc{reference.wolfram_2026_pointfigurechart, author="Wolfram Research", title="{PointFigureChart}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/PointFigureChart.html}", note=[Accessed: 14-October-2026]}
BibLaTeX
@online{reference.wolfram_2026_pointfigurechart, organization={Wolfram Research}, title={PointFigureChart}, year={2025}, url={https://reference.wolfram.com/language/ref/PointFigureChart.html}, note=[Accessed: 14-October-2026]}