Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get subplots in matplotlib

fig,ax = plt.subplots(3,2,figsize=(25,10),)

i,j = 0,0
for each in list_of_images:
    img = cv.imread(each.name)
    ax[i,j].imshow(img)
   

    if j == 1:
        j = 0
        if i != 2:
            i += 1
    else:
        j += 1
    
        
 
PREVIOUS NEXT
Tagged: #subplots #matplotlib
ADD COMMENT
Topic
Name
9+9 =