Qurak

ListPlot

可用,但與 .wl 參考有差異

Plots a list of values as points.

ListPlot[{y1, …, yn}]
ListPlot[{{x1, y1}, …, {xn, yn}}]
ListPlot[{data1, data2, …}]
ListPlot[{…, w[datai, …], …}]
Head[ListPlot[{1, 2, 3, 4}]] → GraphicsHead[ListPlot[{Labeled[Sqrt[Range[40]], "sqrt"], Labeled[Log[Range[40, 80]], "log"]}]] → GraphicsHead[ListPlot[{{1, 2, 3}, {2, 3, 4}}, Filling -> {1 -> {2}}]] → GraphicsHead[ListPlot[{Sort@First@Last[Reap[Plot[Sin[x], {x, 0, 2 Pi}, EvaluationMonitor :> Sow[{x, Sin[x]}]]]], Sort@First@Last[Reap[Plot[Cos[x], {x, 0, 2 Pi}, EvaluationMonitor :> Sow[{x, Cos[x]}]]]]}, Filling -> {1 -> {2}}]] → GraphicsHead[ListPlot[{Around[2.2, 1.2], Around[3.3, 1.1], Around[5.9, 0.6]}]] → GraphicsStringContainsQ[ExportString[ListPlot[{{1, 1}, {2, 2}}, PlotStyle -> {PointSize[0.04], Red}], "SVG"], "<svg"] → TrueStringContainsQ[ExportString[ListPlot[{{{1, 1}, {2, 2}}, {{1, 2}, {2, 3}}}, PlotStyle -> {Red, Green}], "SVG"], "<svg"] → TrueStringContainsQ[ExportString[ListPlot[{{1, 1}, {2, 2}, {3, 3}}, PlotMarkers -> Style["A", Red, 18]], "SVG"], "<svg"] → TrueStringContainsQ[ExportString[ListPlot[{{{1, 1}, {2, 2}}, {{1, 2}, {2, 3}}}, PlotMarkers -> {"A", "B"}], "SVG"], "<svg"] → TrueStringContainsQ[ExportString[ListPlot[{{0, 0.}, {1, 1.}}, Epilog -> {Green, Line[{{0, 0.5}, {1, 0.5}}]}], "SVG"], "<svg"] → True

使用於

主題

相關

全部 6300 個函式 · 從 MCP 用戶端使用這個