DateTicksFormat
是关于 DateListPlot 的一个选项,指定应该如何格式化日期记号标签.
更多信息
- DateTicksFormat->Automatic 根据所要绘制的日期范围,选择记号标签.
- DateTicksFormat->{"e1","sep12","e2",…} 使用指定的分隔符,连接日期元素 "ei". »
- 可以使用 DateString 中的任意日期元素.
- 一般元素包括:
-
范例
打开所有单元 关闭所有单元基本范例 (2)
data = {{{2006, 10, 1}, 8}, {{2006, 10, 10}, 10}, {{2006, 10, 20}, 12}, {{2006, 10, 24}, 14}, {{2006, 11, 5}, 15}, {{2006, 11, 15}, 20}};{DateListPlot[data], DateListPlot[data, DateTicksFormat -> {"MonthShort", "/", "Day"}]}data = {{{2000, 7}, 8}, {{2001, 7}, 10}, {{2002, 7}, 12}, {{2003, 7}, 14}, {{2004, 7}, 15}, {{2005, 7}, 20}};{DateListPlot[data], DateListPlot[data, DateTicksFormat -> {"MonthNameShort", " ", "YearShort"}]}范围 (2)
DateListPlot[{13, 14, 17, 24, 26, 28, 29, 31, 42, 44}, {"1:00 PM", Automatic, "Hour"}, DateTicksFormat -> {"Hour12Short", "AMPM"}]DateListPlot[Range[10], {2000}, DateTicksFormat -> {"Month", "/", "Year"}, FrameTicks -> {{Automatic, Automatic}, {{{2002, 5}, {2006, 9}}, Automatic}}]相关指南
-
▪
- 日期和时间可视化
文本
Wolfram Research (2007),DateTicksFormat,Wolfram 语言函数,https://reference.wolfram.com/language/ref/DateTicksFormat.html.
CMS
Wolfram 语言. 2007. "DateTicksFormat." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/DateTicksFormat.html.
APA
Wolfram 语言. (2007). DateTicksFormat. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/DateTicksFormat.html 年
BibTeX
@misc{reference.wolfram_2026_dateticksformat, author="Wolfram Research", title="{DateTicksFormat}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/DateTicksFormat.html}", note=[Accessed: 12-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_dateticksformat, organization={Wolfram Research}, title={DateTicksFormat}, year={2007}, url={https://reference.wolfram.com/language/ref/DateTicksFormat.html}, note=[Accessed: 12-September-2026]}