# Plot drifts as focus in/out of the window

**URL:** <https://discourse.julialang.org/t/plot-drifts-as-focus-in-out-of-the-window/14752>\
**Category:** Visualization\
**Created:** [September 10, 2018, 6:24am UTC](https://discourse.julialang.org/t/plot-drifts-as-focus-in-out-of-the-window/14752 "2018-09-10T06:24:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeoK987](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/leok987/32/4880_2.png) [@LeoK987](https://discourse.julialang.org/u/LeoK987)\
**Post date:** [September 10, 2018, 6:24am UTC](https://discourse.julialang.org/t/plot-drifts-as-focus-in-out-of-the-window/14752/1 "2018-09-10T06:24:24Z")

</div>

```julia
$ julia
               _
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.1.0-DEV.199 (2018-09-06)
 _/ |\ __'_|_|_|\__'_| | Commit 4c02077a3a (4 days old master)
|__/ |

julia> using Plots

julia> gr()
Plots.GRBackend()

julia> plot(randn(10))
qt5ct: using qt5ct plugin

```

Now the plot window appears (with the newest version call to gui() seems not necessary)

Then as I move the mouse in and out of the plot window (I set focus to follow mouse on the XFCE4), the plot drifts/shrinks somewhat within the wondow.

Now if I call gui(), the drift/shrink becomes more severe.

In this case, I can only stop the drift/shrink behavior by manually resize the window.

If I call

```julia
closeall()
gui()

```

after plot, then there is no drift.

I have been having for quite some long time, perhaps since the beginning of Julia 0.7 and the earlier versions of Plots and GR. Now I am on a nightly build of 1.1.0 and the latest Plots and GR, it is still the same.

Hasn’t anyone notice this?

---

<div class="post-metadata">

**Author:** ![LeoK987](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/leok987/32/4880_2.png) [@LeoK987](https://discourse.julialang.org/u/LeoK987)\
**Post date:** [September 15, 2018, 4:50am UTC](https://discourse.julialang.org/t/plot-drifts-as-focus-in-out-of-the-window/14752/2 "2018-09-15T04:50:58Z")

</div>

So, no one experienced this? Then it’s must be due to my local settings. Probably because I am running Qt on XFCE4? No one use XFCE4?
