MCPcopy Index your code
hub / github.com/PySimpleGUI/PySimpleGUI / get_rgb

Function get_rgb

DemoPrograms/Demo_Matplotlib_Styles.py:48–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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])

Callers 1

create_axis_gridFunction · 0.70

Calls 1

get_demo_imageFunction · 0.70

Tested by

no test coverage detected