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

Skip to content

Commit 72cd67a

Browse files
committed
Fix doc
1 parent 79f4a11 commit 72cd67a

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

lib/matplotlib/units.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@ def _accepts_units(convert_x, convert_y):
6060
Parameters
6161
----------
6262
convert_x, convert_y : list
63-
A list of integers or strings (can be mixed). Integers denote
64-
non-keyword arguments to be converted, and strings denote keyword
65-
arguments to be converted.
63+
A list of integers or strings, indicating the arguments to be converted
6664
"""
6765
def decorator(func):
6866
def wrapper(*args, **kwargs):

test.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from datetime import datetime
2+
import matplotlib.pyplot as plt
3+
4+
5+
data = {"x": 1, "y": datetime(1992, 12, 21)}
6+
plt.scatter('x', 'y', data=data)
7+
plt.show()

0 commit comments

Comments
 (0)