# Subplot in Julia

**URL:** <https://discourse.julialang.org/t/subplot-in-julia/35505>\
**Category:** General Usage\
**Created:** [March 4, 2020, 7:01am UTC](https://discourse.julialang.org/t/subplot-in-julia/35505 "2020-03-04T07:01:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eldho.Ashna](https://avatars.discourse-cdn.com/v4/letter/e/bc8723/32.png) [@Eldho.Ashna](https://discourse.julialang.org/u/Eldho.Ashna)\
**Post date:** [March 4, 2020, 7:01am UTC](https://discourse.julialang.org/t/subplot-in-julia/35505/1 "2020-03-04T07:01:16Z")

</div>

Hi all,

I’m trying to rewrite the following python code to julia.

```julia
import numpy as np
import cv2 
import matplotlib.pyplot as plt

img = cv2.imread('/home/julia_Hands_on/cat3.jpg')
img_tinted = img * [1, 0.95, 0.9]

# Show the original image
plt.subplot(1, 2, 1)
plt.imshow(img)

# Show the tinted image
plt.subplot(1, 2, 2)
plt.imshow(np.uint8(img_tinted))
plt.show()

```

In python, we have `plt.subplot` to display images in sub. Simililarly, how can we subplot images in Julia using Plot?

---

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [March 4, 2020, 7:07am UTC](https://discourse.julialang.org/t/subplot-in-julia/35505/2 "2020-03-04T07:07:10Z")

</div>

[https://docs.juliaplots.org/latest/layouts/](https://docs.juliaplots.org/latest/layouts/)
