Adding caption to each image
Closed this issue · 2 comments
harsh-99 commented
Hi,
Thanks for your contribution. Just wanted to know if there is any option to add caption to each figure?
karolzak commented
Hi @harsh-99 !
Could you give more details there? Do you mean a caption for each displayed image like below?
If yes then you just need to use the labels
arg for ipyplot.plot_images
function and provide a specific string
for each image you want to display:
import ipyplot
import numpy as np
imgs = np.random.randint(0, 255, (3,128,128,3), np.uint8)
ipyplot.plot_images(imgs, labels = ['caption a', 'caption b', 'other caption c'])
Or are you talking about different captions?
harsh-99 commented
Hi,
Thanks a lot for the help. I missed out to check this option.
Thanks once again.!