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

Skip to content

Commit 0ea037d

Browse files
committed
Merge pull request #2641 from mineo/plot-date-fmt
plot_date: Set the default fmt to 'o'
2 parents c0e5c99 + 7856995 commit 0ea037d

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

doc/api/api_changes.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ original location:
107107
does the exact same thing as `FormatStrFormatter`, but for new-style
108108
formatting strings.
109109

110+
* The ``fmt`` argument of :meth:`~matplotlib.axes.Axes.plot_date` has been
111+
changed from ``bo`` to just ``o``, so color cycling can happen by default.
112+
110113
.. _changes_in_1_3:
111114

112115

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1337,7 +1337,7 @@ def plot(self, *args, **kwargs):
13371337
return lines
13381338

13391339
@docstring.dedent_interpd
1340-
def plot_date(self, x, y, fmt='bo', tz=None, xdate=True, ydate=False,
1340+
def plot_date(self, x, y, fmt='o', tz=None, xdate=True, ydate=False,
13411341
**kwargs):
13421342
"""
13431343
Plot with data with dates.

lib/matplotlib/pyplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3066,7 +3066,7 @@ def plot(*args, **kwargs):
30663066
# This function was autogenerated by boilerplate.py. Do not edit as
30673067
# changes will be lost
30683068
@_autogen_docstring(Axes.plot_date)
3069-
def plot_date(x, y, fmt='bo', tz=None, xdate=True, ydate=False, hold=None,
3069+
def plot_date(x, y, fmt='o', tz=None, xdate=True, ydate=False, hold=None,
30703070
**kwargs):
30713071
ax = gca()
30723072
# allow callers to override the hold state by passing hold=True|False

0 commit comments

Comments
 (0)