DataRange
是 ListPlot 和 ListDensityPlot 这类函数的一个选项,指定应当假定数据占用什么样的实际坐标范围.
范例
基本范例 (2)
data = Table[Sin[x], {x, 0, 10, 0.1}];ListPlot[data]利用 DataRange 指明
值的不同范围:
ListPlot[data, DataRange -> {0, 10}]data = Table[Sin[x + y ^ 2], {x, -2, 2, 0.1}, {y, -2, 2, 0.1}];ListPlot3D[data, DataRange -> {{-2, 2}, {-2, 2}}]ListContourPlot[data, DataRange -> {{-2, 2}, {-2, 2}}]历史
2004年引入 (5.1)
文本
Wolfram Research (2004),DataRange,Wolfram 语言函数,https://reference.wolfram.com/language/ref/DataRange.html.
CMS
Wolfram 语言. 2004. "DataRange." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/DataRange.html.
APA
Wolfram 语言. (2004). DataRange. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/DataRange.html 年
BibTeX
@misc{reference.wolfram_2026_datarange, author="Wolfram Research", title="{DataRange}", year="2004", howpublished="\url{https://reference.wolfram.com/language/ref/DataRange.html}", note=[Accessed: 10-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_datarange, organization={Wolfram Research}, title={DataRange}, year={2004}, url={https://reference.wolfram.com/language/ref/DataRange.html}, note=[Accessed: 10-September-2026]}