# How can I adjust the resolution of PyPlot.jl in Pluto?

**URL:** <https://discourse.julialang.org/t/how-can-i-adjust-the-resolution-of-pyplot-jl-in-pluto/73495>\
**Category:** General Usage\
**Tags:** plotting\
**Created:** [December 22, 2021, 3:00pm UTC](https://discourse.julialang.org/t/how-can-i-adjust-the-resolution-of-pyplot-jl-in-pluto/73495 "2021-12-22T15:00:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Minghao\_Du](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/minghao_du/32/32151_2.png) [@Minghao\_Du](https://discourse.julialang.org/u/Minghao_Du)\
**Post date:** [December 22, 2021, 3:00pm UTC](https://discourse.julialang.org/t/how-can-i-adjust-the-resolution-of-pyplot-jl-in-pluto/73495/1 "2021-12-22T15:00:16Z")

</div>

How to adjust the resolution of PyPlot in Pluto?

import PyPlot as plt  
let  
X=collect(0:0.01:10)  
plt.clf()  
plt.plot(X,sin.(exp.(X/3)))  
figure=plt.gcf()  
end

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [December 22, 2021, 5:38pm UTC](https://discourse.julialang.org/t/how-can-i-adjust-the-resolution-of-pyplot-jl-in-pluto/73495/2 "2021-12-22T17:38:48Z")

</div>

Use `figure(size=(...))`?

---

<div class="post-metadata">

**Author:** ![Minghao\_Du](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/minghao_du/32/32151_2.png) [@Minghao\_Du](https://discourse.julialang.org/u/Minghao_Du)\
**Post date:** [December 23, 2021, 12:53am UTC](https://discourse.julialang.org/t/how-can-i-adjust-the-resolution-of-pyplot-jl-in-pluto/73495/4 "2021-12-23T00:53:26Z")

</div>

Can this only be resized? I know this can adjust size:

```julia
figure=PyPlot.gcf()
figure.set_size_inches(8,3)

```

but I don’t know how to adjust the dpi

---

<div class="post-metadata">

**Author:** ![sashmit](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sashmit/32/18791_2.png) [@sashmit](https://discourse.julialang.org/u/sashmit)\
**Post date:** [December 23, 2021, 1:41am UTC](https://discourse.julialang.org/t/how-can-i-adjust-the-resolution-of-pyplot-jl-in-pluto/73495/5 "2021-12-23T01:41:35Z")

</div>

figure.set\_dpi(150.0`)

?
