# Scale Window/Plot Size using PyPlot

**URL:** <https://discourse.julialang.org/t/scale-window-plot-size-using-pyplot/5762>\
**Category:** General Usage\
**Tags:** pyplot\
**Created:** [September 7, 2017, 3:21pm UTC](https://discourse.julialang.org/t/scale-window-plot-size-using-pyplot/5762 "2017-09-07T15:21:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![IljaK91](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iljak91/32/44301_2.png) [@IljaK91](https://discourse.julialang.org/u/IljaK91)\
**Post date:** [September 7, 2017, 3:21pm UTC](https://discourse.julialang.org/t/scale-window-plot-size-using-pyplot/5762/1 "2017-09-07T15:21:06Z")

</div>

I would like to plot something using PyPlot, change the size of the window and then save it. Through stretching the window a bit in one direction, the overall plot looks better and nothing overlaps. Since I have to do this often, is there a way to put this in one command? I have not found anything so far.

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![IljaK91](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iljak91/32/44301_2.png) [@IljaK91](https://discourse.julialang.org/u/IljaK91)\
**Post date:** [September 7, 2017, 3:28pm UTC](https://discourse.julialang.org/t/scale-window-plot-size-using-pyplot/5762/2 "2017-09-07T15:28:19Z")

</div>

I found it, you can use for example:

```julia
using PyPlot
fig, ax = subplots(2,1,figsize=[8,20])

```

Which gives you size in inches(?).
