()
| 800 | return Z, extent |
| 801 | |
| 802 | def get_rgb(): |
| 803 | Z, extent = get_demo_image() |
| 804 | |
| 805 | Z[Z < 0] = 0. |
| 806 | Z = Z / Z.max() |
| 807 | |
| 808 | R = Z[:13, :13] |
| 809 | G = Z[2:, 2:] |
| 810 | B = Z[:13, 2:] |
| 811 | |
| 812 | return R, G, B |
| 813 | |
| 814 | fig = plt.figure(1) |
| 815 | ax = RGBAxes(fig, [0.1, 0.1, 0.8, 0.8]) |
no test coverage detected