()
| 46 | return Z, extent |
| 47 | |
| 48 | def get_rgb(): |
| 49 | Z, extent = get_demo_image() |
| 50 | |
| 51 | Z[Z < 0] = 0. |
| 52 | Z = Z / Z.max() |
| 53 | |
| 54 | R = Z[:13, :13] |
| 55 | G = Z[2:, 2:] |
| 56 | B = Z[:13, 2:] |
| 57 | |
| 58 | return R, G, B |
| 59 | |
| 60 | fig = plt.figure(1) |
| 61 | ax = RGBAxes(fig, [0.1, 0.1, 0.8, 0.8]) |
no test coverage detected