# How to make poly prettier in Makie and Geomakie?

**URL:** <https://discourse.julialang.org/t/how-to-make-poly-prettier-in-makie-and-geomakie/121146>\
**Category:** Visualization\
**Tags:** makie, geomakie\
**Created:** [October 10, 2024, 1:33pm UTC](https://discourse.julialang.org/t/how-to-make-poly-prettier-in-makie-and-geomakie/121146 "2024-10-10T13:33:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![HenriDeh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrideh/32/8316_2.png) [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Post date:** [October 10, 2024, 1:33pm UTC](https://discourse.julialang.org/t/how-to-make-poly-prettier-in-makie-and-geomakie/121146/1 "2024-10-10T13:33:40Z")

</div>

Hello,

I made this map of Germany using geometric data for polygons that draw its districts. Then on top I plotted a pipeline network with arrows and scatter points.  
In that order.

However, the result is quite ugly because the poly lines stay on top of the other components of the Figure. See here:

![image](https://global.discourse-cdn.com/julialang/original/3X/b/d/bd4d582fddeb8b5124c473a3e5e4a4f571ecd0c7.jpeg)

Is there any way to control this ?

Also, you can see at the bottom that the coloring does not alway perfectly fill the shape and leaves white traces along the border. Is there maybe a resolution parameter to adjust this ?

Thanks a lot.

---

<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:** [October 10, 2024, 2:09pm UTC](https://discourse.julialang.org/t/how-to-make-poly-prettier-in-makie-and-geomakie/121146/2 "2024-10-10T14:09:17Z")

</div>

Which backend is this, GLMakie?

---

<div class="post-metadata">

**Author:** ![HenriDeh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrideh/32/8316_2.png) [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Post date:** [October 10, 2024, 2:33pm UTC](https://discourse.julialang.org/t/how-to-make-poly-prettier-in-makie-and-geomakie/121146/3 "2024-10-10T14:33:00Z")

</div>

Yes, GLMakie. Following your question, I tried with CairoMakie and yeah it’s significantly prettier, so thanks !

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

Still, if there’s a way to make it pretty with GLMakie, I’ll take it because I coded it to be an interactive map with tooltips and everything. So if I can make it pretty that’d be great.

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [October 10, 2024, 2:59pm UTC](https://discourse.julialang.org/t/how-to-make-poly-prettier-in-makie-and-geomakie/121146/4 "2024-10-10T14:59:12Z")

</div>

You can try the suggestions from:

> **[lines | Makie](https://docs.makie.org/stable/reference/plots/lines#Dealing-with-outline-artifacts-in-GLMakie)**
>
> Create impressive data visualizations with Makie, the plotting ecosystem for the Julia language. Build aesthetic plots with beautiful customizable themes, control every last detail of publication quality vector graphics, assemble complex layouts and...

---

<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:** [October 10, 2024, 3:30pm UTC](https://discourse.julialang.org/t/how-to-make-poly-prettier-in-makie-and-geomakie/121146/5 "2024-10-10T15:30:53Z")

</div>

Note that you would probably have to apply these suggestions to the lines plot in `poly.plots`

---

<div class="post-metadata">

**Author:** ![asinghvi17](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/asinghvi17/32/8272_2.png) [@asinghvi17](https://discourse.julialang.org/u/asinghvi17)\
**Post date:** [October 10, 2024, 4:31pm UTC](https://discourse.julialang.org/t/how-to-make-poly-prettier-in-makie-and-geomakie/121146/6 "2024-10-10T16:31:55Z")

</div>

I wonder if translating the polygon plots down (`translate!(polyplot, 0, 0, -10)`) might help in GLMakie? That should propagate to the lines as well.
