# Makie text word\_wrap\_width unit

**URL:** <https://discourse.julialang.org/t/makie-text-word-wrap-width-unit/118144>\
**Category:** General Usage\
**Tags:** makie\
**Created:** [August 13, 2024, 3:53pm UTC](https://discourse.julialang.org/t/makie-text-word-wrap-width-unit/118144 "2024-08-13T15:53:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NicoD](https://avatars.discourse-cdn.com/v4/letter/n/13edae/32.png) [@NicoD](https://discourse.julialang.org/u/NicoD)\
**Post date:** [August 13, 2024, 3:53pm UTC](https://discourse.julialang.org/t/makie-text-word-wrap-width-unit/118144/1 "2024-08-13T15:53:20Z")

</div>

Hi,  
in Makie the text plot has a [word\_wrap\_width](https://docs.makie.org/stable/reference/plots/text#word-wrap-width) argument used to wrap if its width goes over a certain limit.

It works fine but there is no indication on the unit of this value. It seems to be related to pixels and window width, or maybe the figure px\_per\_unit, or the font size…

I cannot use it reliably if I can’t set it to a precise value in my plot. for example, my x label is from 0 to 2 and I want the text to start at 0 and wrap if it goes over 1. Which value for word\_wrap\_width should I put?

---

<div class="post-metadata">

**Author:** ![ffreyer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ffreyer/32/21569_2.png) [@ffreyer](https://discourse.julialang.org/u/ffreyer)\
**Post date:** [August 13, 2024, 8:46pm UTC](https://discourse.julialang.org/t/makie-text-word-wrap-width-unit/118144/2 "2024-08-13T20:46:54Z")

</div>

I’m not sure how it interacts with px\_per\_unit but it’s either on the pixel side or the unit side of it.
