Skip to content

Instantly share code, notes, and snippets.

@prateekjoshi565
Last active April 19, 2023 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prateekjoshi565/93aa10c901f61fbd8dccd84f60240e6e to your computer and use it in GitHub Desktop.
Save prateekjoshi565/93aa10c901f61fbd8dccd84f60240e6e to your computer and use it in GitHub Desktop.
# Resize the foreground image to 960x720 pixels
plot_img = plot_img.resize((960, 720))
# Paste the foreground image again onto the background image at a different position (60, 1000)
combined_image.paste(plot_img, (60, 1000))
# display combined image
plt.figure(figsize= (12, 8))
plt.imshow(combined_image);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment