Add ravel() reference link
parent
971b871647
commit
6b572eb0ef
|
@ -134,7 +134,7 @@ def _mk_lines_array(data: List, size: int) -> np.ndarray:
|
||||||
"""Create an ndarray to hold lines graphics objects.
|
"""Create an ndarray to hold lines graphics objects.
|
||||||
"""
|
"""
|
||||||
# TODO: might want to just make this a 2d array to be faster at
|
# TODO: might want to just make this a 2d array to be faster at
|
||||||
# flattening using .ravel()?
|
# flattening using .ravel(): https://stackoverflow.com/a/60089929
|
||||||
return np.zeros_like(
|
return np.zeros_like(
|
||||||
data,
|
data,
|
||||||
shape=(int(size),),
|
shape=(int(size),),
|
||||||
|
|
Loading…
Reference in New Issue