Home > Mobile >  Plottting Inside and Outside Boundary? Matplotlib
Plottting Inside and Outside Boundary? Matplotlib

Time:09-22

I am trying to plot custom ColorChecker Card using RGB values of Primary Colour with Matplotlib using following code.

primary_color  = np.array(
    [
        [[0,80,159], [15,165,56], [230,49,80]],
        [[227,227,227], [51,51,51],[255,229,0]], 
        #[[193,90,99], [192,192,192], [128,128,128], [128,0,0]],
        
    ], dtype='uint8'
)

and for plotting

fig, ax = plt.subplots()
ax.matshow(primary_color)
plt.axis('off')

this is the results enter image description here

  • Related