BUILT-IN WOLFRAM LANGUAGE SYMBOL

DateTicksFormat

DateTicksFormat
is an option for DateListPlot which specifies how date tick labels should be formatted.

DetailsDetails

  • DateTicksFormat->Automatic chooses tick labels based on the range of dates to be plotted.
  • DateTicksFormat->{"e1","sep12","e2",} concatenates date elements with the specified separators. »
  • Any of the date elements from DateString can be used.
  • Typical elements include:
  • "Year"full year (e.g. 2005)
    "YearShort"2-digit year (e.g. 05)
    "QuarterNameShort"quarter of year in short form (e.g. "Q1")
    "MonthNameShort"month name in short form (e.g. "Aug")
    "MonthNameInitial"first letter of month name (e.g. "A")
    "Month"2-digit month number (e.g. 08)
    "MonthShort"1- or 2-digit month number (e.g. 8)
    "DayNameShort"short day of the week (e.g. "Wed")
    "DayNameInitial"first letter of day name (e.g. "W")
    "Day"2-digit day of the month (e.g. 09)
    "DayShort"1- or 2-digit day of the month (e.g. 9 or 29)
    "Hour12"hour on 12-hour clock
    "Hour24"hour on 24-hour clock
    "AMPM"AM or PM
    "AMPMLowerCase"am or pm
    "Minute"2-digit minute (e.g. 05)
    "Second"2-digit seconds

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Plot date-based data using default and specified ticks:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

Specify both month and year information for ticks:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
Introduced in 2007
(6.0)