Image-With-Matplot

Sat 17 May 2025
!python --version
Python 3.10.5
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
# Path to your PNG file
image_path = 'deer.jpg'
# Load and display the image
img = mpimg.imread(image_path)
plt.imshow(img)
plt.axis('off')  # Turn off axis
plt.show()

png



Score: 5

Category: image-work


Show-Image

Sat 17 May 2025
!python --version
Python 3.10.5
from IPython.display import Image, display
# Path to your PNG file
image_path = 'deer.jpg'
# Display the image
display(Image(filename=image_path))

jpeg



Score: 5

Category: image-work

Read More
Page 1 of 1