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

Function get_rgb

DemoPrograms/Demo_Matplotlib_Browser.py:802–812  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

AxesGridFunction · 0.70

Calls 1

get_demo_imageFunction · 0.70

Tested by

no test coverage detected