# Resizing GLMakie figure to display window

**URL:** <https://discourse.julialang.org/t/resizing-glmakie-figure-to-display-window/98103>\
**Category:** General Usage\
**Tags:** question, package, plotting, makie, display\
**Created:** [April 29, 2023, 9:08pm UTC](https://discourse.julialang.org/t/resizing-glmakie-figure-to-display-window/98103 "2023-04-29T21:08:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanielVandH](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/danielvandh/32/31134_2.png) [@DanielVandH](https://discourse.julialang.org/u/DanielVandH)\
**Post date:** [April 29, 2023, 9:08pm UTC](https://discourse.julialang.org/t/resizing-glmakie-figure-to-display-window/98103/1 "2023-04-29T21:08:31Z")

</div>

For the following figure,

```julia
using GLMakie

fig = Figure(fontsize = 27)
sl = Slider(fig[1, 0])
[Axis(fig[i, j], width = 600, height = 300, title = "i,j") for i in 1:2, j in 1:3]
le = LineElement(color=:red,linewidth=2,linestyle=:solid)
Legend(fig[0, 1:3], [le,le,le], ["Test1", "Test2", "Test3"], orientation=:horizontal)
Legend(fig[1:2, 4], [le,le,le], ["Test1", "Test2", "Test3"])

resize_to_layout!(fig)
fig

```

when I display it I’m not able to view all of the contents. Instead, in the Makie window that opens up all I see is

 ![image](https://global.discourse-cdn.com/julialang/original/3X/c/5/c55d45b99800352eeeb8f44b6b9b9227da80025e.png)

This is the window in full size, but resizing it only hides more things. How can I resize the figure properly to view everything?

---

<div class="post-metadata">

**Author:** ![grunst](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/grunst/32/9271_2.png) [@grunst](https://discourse.julialang.org/u/grunst)\
**Post date:** [April 29, 2023, 10:21pm UTC](https://discourse.julialang.org/t/resizing-glmakie-figure-to-display-window/98103/2 "2023-04-29T22:21:17Z")

</div>

Remove the height and width keyword from Axis
