Make an array with desired shape using np.linspace shape is a tuple like (2, 3)
(shape: tuple[int, ...], start: float = 0, stop: float = 1)
| 129 | |
| 130 | |
| 131 | def easy_array(shape: tuple[int, ...], start: float = 0, stop: float = 1) -> np.ndarray: |
| 132 | """ |
| 133 | Make an array with desired shape using np.linspace |
| 134 | |
| 135 | shape is a tuple like (2, 3) |
| 136 | """ |
| 137 | a = np.linspace(start, stop, num=math.prod(shape)) |
| 138 | return a.reshape(shape) |
| 139 | |
| 140 | |
| 141 | def get_colorbar_label(colorbar) -> str: |
no test coverage detected
searching dependent graphs…