# Rowgap!() not working properly

**URL:** <https://discourse.julialang.org/t/rowgap-not-working-properly/112682>\
**Category:** Visualization\
**Tags:** cairomakie\
**Created:** [April 8, 2024, 1:16pm UTC](https://discourse.julialang.org/t/rowgap-not-working-properly/112682 "2024-04-08T13:16:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![brotmesmer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brotmesmer/32/208346_2.png) [@brotmesmer](https://discourse.julialang.org/u/brotmesmer)\
**Post date:** [April 8, 2024, 1:16pm UTC](https://discourse.julialang.org/t/rowgap-not-working-properly/112682/1 "2024-04-08T13:16:15Z")

</div>

Hi all,

when trying to layout a plot similar to the the example in the Makie layout tutorial i ran into a problem using the rowgap!() command:  
MethodError: objects of type Int64 are not callable

colgap!() works flawlessly.  
I would be gratful for any advice how to get this working (or any other workarounds to reduce the gaps between the right column plots)

using CairoMakie  
using FileIO

CairoMakie.activate!(inline=false)

fig = Figure(fontsize=15)

g\_a = fig[1:5,1] = GridLayout()  
g\_b = fig[1:5,2] = GridLayout()

ax\_a\_1 = Axis(g\_a[:,1])  
ax\_a\_2 = Axis(g\_a[:,2])  
ax\_b\_1 = Axis(g\_b[1,:])  
ax\_b\_2 = Axis(g\_b[2,:])  
ax\_b\_3 = Axis(g\_b[3,:])  
ax\_b\_4 = Axis(g\_b[4,:])  
ax\_b\_5 = Axis(g\_b[5,:])

colgap!(g\_a, 50)  
rowgap!(g\_b,10)

fig

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)\
**Post date:** [April 8, 2024, 2:27pm UTC](https://discourse.julialang.org/t/rowgap-not-working-properly/112682/2 "2024-04-08T14:27:44Z")

</div>

That’s a strange error for `rowgap!`, maybe you accidentally set `rowgap! = someinteger` and could try to restart your session

---

<div class="post-metadata">

**Author:** ![brotmesmer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brotmesmer/32/208346_2.png) [@brotmesmer](https://discourse.julialang.org/u/brotmesmer)\
**Post date:** [April 9, 2024, 8:36am UTC](https://discourse.julialang.org/t/rowgap-not-working-properly/112682/3 "2024-04-09T08:36:21Z")

</div>

Okay, restarting did the trick, thanks 🙂
