# Chasing a GR bug (non-square figures)

**URL:** <https://discourse.julialang.org/t/chasing-a-gr-bug-non-square-figures/58819>\
**Category:** Visualization\
**Created:** [April 8, 2021, 10:48am UTC](https://discourse.julialang.org/t/chasing-a-gr-bug-non-square-figures/58819 "2021-04-08T10:48:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gustaphe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gustaphe/32/18174_2.png) [@gustaphe](https://discourse.julialang.org/u/gustaphe)\
**Post date:** [April 8, 2021, 10:48am UTC](https://discourse.julialang.org/t/chasing-a-gr-bug-non-square-figures/58819/1 "2021-04-08T10:48:21Z")

</div>

I’ve made a bug report at

> <https://github.com/jheinen/GR.jl/issues/385>
>
> I don't know if this is specific to my system (i3wm on Arch linux).
> 
> No matter… the dimensions of the plot, GR reserves a square area for it in the window. This means that if the window is resized the figure is sometimes needlessly scaled down. This figure, for instance, could easily fill the window better but since it's trying to fit a square viewport it leaves a lot of empty space:
> 
> !\[image\](https://user-images.githubusercontent.com/6677110/113898623-53cd0600-97cc-11eb-98b5-3f7352c35fc4.png)
> 
> Here's the same problem for a call \`using Plots;gr();plot(randn(10,10); title="hi", size=(300,600))\`:
> 
> !\[image\](https://user-images.githubusercontent.com/6677110/113899062-b7573380-97cc-11eb-9df0-f135be09a5d9.png)
> 
> Is this a limitation in QtTerm, a bug or a specific issue with i3?

, but since I’m suspecting that this is system dependant I would appreciate if someone else could help me check:

From the Repl,

```julia
julia> using Plots
julia> gr()
julia> plot(rand(10); size=(800,100))

```

If you rescale the figure window height so that `h<w` (but `h` still `>w/4`), does the figure shrink? As if it was square with sides `w`?

I’m getting this behaviour on Arch Linux with i3wm.

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [April 8, 2021, 10:55am UTC](https://discourse.julialang.org/t/chasing-a-gr-bug-non-square-figures/58819/2 "2021-04-08T10:55:04Z")

</div>

I can’t repro this with KDE – you’re probably right in that it’s a WM issue.

---

<div class="post-metadata">

**Author:** ![jheinen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jheinen/32/2787_2.png) [@jheinen](https://discourse.julialang.org/u/jheinen)\
**Post date:** [April 8, 2021, 11:49am UTC](https://discourse.julialang.org/t/chasing-a-gr-bug-non-square-figures/58819/3 "2021-04-08T11:49:42Z")

</div>

I can’t reproduce it on any of my desktop machines. I think it’s a problem with tiling window managers.
