# Change circle radius of Shell() graph in GraphMakie

**URL:** <https://discourse.julialang.org/t/change-circle-radius-of-shell-graph-in-graphmakie/99306>\
**Category:** Graphs\
**Tags:** graphs, graphmakie\
**Created:** [May 23, 2023, 10:13pm UTC](https://discourse.julialang.org/t/change-circle-radius-of-shell-graph-in-graphmakie/99306 "2023-05-23T22:13:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dario\_Sarra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dario_sarra/32/9338_2.png) [@Dario\_Sarra](https://discourse.julialang.org/u/Dario_Sarra)\
**Post date:** [May 23, 2023, 10:13pm UTC](https://discourse.julialang.org/t/change-circle-radius-of-shell-graph-in-graphmakie/99306/1 "2023-05-23T22:13:34Z")

</div>

I am using GraphMakie on a MetaGraphNext structure to visualise the relationship between organizations in a story. I would like to use `ilabels` with the organization name in a Shell layout. However, because of the length of the string in the name, the circles become so big that they overlap each other. Is there a way to scale the diameter of the circle where the nodes lay? I know I can use `nlist=Vector{Int}[]` to change in which concentric circle some nodes lay, but I would like place the node on a circle with a radius \> 1

---

<div class="post-metadata">

**Author:** ![hexaeder](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hexaeder/32/24403_2.png) [@hexaeder](https://discourse.julialang.org/u/hexaeder)\
**Post date:** [May 24, 2023, 11:08am UTC](https://discourse.julialang.org/t/change-circle-radius-of-shell-graph-in-graphmakie/99306/2 "2023-05-24T11:08:10Z")

</div>

I don’t think there is a built in method for this but you may create your own layout by scaling:

```julia
mylayout = g -> Shell()(g)*2

```

Which should place them on a circle with radius 2.

PS: A PR which adds this feature in NetworkLayout would be welcome.

PPS: i am not sure if this can solve your original problem since the layout happens in data space but if your circles overlay eachother it’s a problem in pixelspace. Might be easier to adjust the textsize of ilabels.

---

<div class="post-metadata">

**Author:** ![Dario\_Sarra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dario_sarra/32/9338_2.png) [@Dario\_Sarra](https://discourse.julialang.org/u/Dario_Sarra)\
**Post date:** [May 26, 2023, 9:52am UTC](https://discourse.julialang.org/t/change-circle-radius-of-shell-graph-in-graphmakie/99306/3 "2023-05-26T09:52:54Z")

</div>

Thanks your suggestion solves it for now. However, the Shell() function is fairly intuitive and could benefit from a new kwargs. I’ll try to do the PR as you suggested, it’s time for me to learn how to contribute.
