Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions lib/matplotlib/category.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import dateutil.parser
import itertools
import logging
import warnings

import numpy as np

Expand Down Expand Up @@ -220,10 +221,10 @@ def update(self, data):
if val not in self._mapping:
self._mapping[val] = next(self._counter)
if data.size and convertible:
_log.info('Using categorical units to plot a list of strings '
'that are all parsable as floats or dates. If these '
'strings should be plotted as numbers, cast to the '
'appropriate data type before plotting.')
warnings.warn('Using categorical units to plot a list of strings '
'that are all parsable as floats or dates. If these '
'strings should be plotted as numbers, cast to the '
'appropriate data type before plotting.')


# Register the converter with Matplotlib's unit framework
Expand Down