Skip to content

Commit 705ed51

Browse files
committed
De-emphasize usage of Axes.plot_date() in the docs.
1 parent 4ac8c60 commit 705ed51

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/ticks_and_spines/date_demo_convert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
y = np.arange(len(dates))
1818

1919
fig, ax = plt.subplots()
20-
ax.plot_date(dates, y ** 2)
20+
ax.plot(dates, y**2, 'o')
2121

2222
# this is superfluous, since the autoscaler should get it right, but
2323
# use date2num and num2date to convert between dates and floats if

examples/ticks_and_spines/date_demo_rrule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232

3333
fig, ax = plt.subplots()
34-
plt.plot_date(dates, s)
34+
plt.plot(dates, s, 'o')
3535
ax.xaxis.set_major_locator(loc)
3636
ax.xaxis.set_major_formatter(formatter)
3737
ax.xaxis.set_tick_params(rotation=30, labelsize=10)

lib/matplotlib/dates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
All the Matplotlib date converters, tickers and formatters are timezone aware.
6464
If no explicit timezone is provided, :rc:`timezone` is assumed. If you want to
6565
use a custom time zone, pass a `datetime.tzinfo` instance with the tz keyword
66-
argument to `num2date`, `~.Axes.plot_date`, and any custom date tickers or
66+
argument to `num2date`, `.Axis.axis_date`, and any custom date tickers or
6767
locators you create.
6868
6969
A wide range of specific and general purpose date tick locators and

0 commit comments

Comments
 (0)