We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ab8de2d + 947f252 commit 0b590bbCopy full SHA for 0b590bb
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