We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
np.uint8
_to_numpy_array
1 parent ab8de2d commit 947f252Copy full SHA for 947f252
proplot/internals/inputs.py
@@ -130,6 +130,8 @@ def _to_numpy_array(data, strip_units=False):
130
data = data.data # support pint quantities that get unit-stripped later
131
elif isinstance(data, (DataFrame, Series, Index)):
132
data = data.values
133
+ if data.dtype == bool:
134
+ data = data.view(np.uint8)
135
if Quantity is not ndarray and isinstance(data, Quantity):
136
if strip_units:
137
return np.atleast_1d(data.magnitude)
0 commit comments