(plist)
| 80 | bgcolor = (bgcolor, bgcolor, bgcolor) |
| 81 | |
| 82 | def _pad_channel(plist): |
| 83 | ret = [] |
| 84 | for p in plist: |
| 85 | if len(p.shape) == 2: |
| 86 | p = p[:, :, np.newaxis] |
| 87 | if p.shape[2] == 1: |
| 88 | p = np.repeat(p, 3, 2) |
| 89 | ret.append(p) |
| 90 | return ret |
| 91 | |
| 92 | plist = _pad_channel(plist) |
| 93 | shapes = [x.shape for x in plist] |
no test coverage detected
searching dependent graphs…