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

Skip to content

Commit 59887f5

Browse files
committed
Deprecate some more stuff we don't need.
1 parent 07cb765 commit 59887f5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/matplotlib/category.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ def __init__(self, data=()):
6666
self._vals = []
6767
self._val_to_idx = OrderedDict()
6868
self._counter = itertools.count()
69+
if np.size(data):
70+
cbook.warn_deprecated(
71+
"2.1.1",
72+
"Passing data to the UnitData constructor is deprecated.")
6973
self.update(data)
7074

7175
def update(self, new_data):

0 commit comments

Comments
 (0)