Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d86112a

Browse files
committed
De-emphasize usage of Axes.plot_date() in the docs.
1 parent cd0e1b5 commit d86112a

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
@@ -35,7 +35,7 @@
3535

3636

3737
fig, ax = plt.subplots()
38-
plt.plot_date(dates, s)
38+
plt.plot(dates, s, 'o')
3939
ax.xaxis.set_major_locator(loc)
4040
ax.xaxis.set_major_formatter(formatter)
4141
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
@@ -85,7 +85,7 @@
8585
All the Matplotlib date converters, tickers and formatters are timezone aware.
8686
If no explicit timezone is provided, :rc:`timezone` is assumed. If you want to
8787
use a custom time zone, pass a `datetime.tzinfo` instance with the tz keyword
88-
argument to `num2date`, `~.Axes.plot_date`, and any custom date tickers or
88+
argument to `num2date`, `.Axis.axis_date`, and any custom date tickers or
8989
locators you create.
9090
9191
A wide range of specific and general purpose date tick locators and

0 commit comments

Comments
 (0)