# Longer dashes in dashed lines

**URL:** https://discourse.julialang.org/t/longer-dashes-in-dashed-lines/90104
**Category:** Visualization
**Tags:** makie, cairo
**Created:** [November 11, 2022, 9:19am UTC](https://discourse.julialang.org/t/longer-dashes-in-dashed-lines/90104 "2022-11-11T09:19:11Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![pascal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pascal/32/207922_2.png) [@pascal](https://discourse.julialang.org/u/pascal)
#### Post date: [November 11, 2022, 9:19am UTC](https://discourse.julialang.org/t/longer-dashes-in-dashed-lines/90104/1 "2022-11-11T09:19:11Z")

</div>

When plotting dashed lines I can use `linestyle=:dash`. To my taste the individual dashed are a bit short. Is there something like `:longdash` in `CairoMakie`?

Or how can I increase the dash length?

---

<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: [November 11, 2022, 11:45am UTC](https://discourse.julialang.org/t/longer-dashes-in-dashed-lines/90104/2 "2022-11-11T11:45:46Z")

</div>

You can use a vector of line-gap-line-… numbers, like `[10, 4, 10]`. I think the dashes are scaled using the line width so one pattern looks the same no matter what the line width is.

---

<div class="post-metadata">

### Author: ![pascal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pascal/32/207922_2.png) [@pascal](https://discourse.julialang.org/u/pascal)
#### Post date: [November 11, 2022, 12:55pm UTC](https://discourse.julialang.org/t/longer-dashes-in-dashed-lines/90104/3 "2022-11-11T12:55:53Z")

</div>

Using it as `lines(x, y, linestyle=[10, 4, 10])` does not work. The plot then doesn’t show the curve, but also misses the spines somehow.
