# Default length unit with PGFPlotsX and Plots

**URL:** <https://discourse.julialang.org/t/default-length-unit-with-pgfplotsx-and-plots/88367>\
**Category:** Visualization\
**Tags:** pgfplotsx\
**Created:** [October 6, 2022, 6:43pm UTC](https://discourse.julialang.org/t/default-length-unit-with-pgfplotsx-and-plots/88367 "2022-10-06T18:43:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gregstrq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gregstrq/32/20620_2.png) [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Post date:** [October 6, 2022, 6:43pm UTC](https://discourse.julialang.org/t/default-length-unit-with-pgfplotsx-and-plots/88367/1 "2022-10-06T18:43:35Z")

</div>

I am using PGFPlotsX as a backend for Plots. I have specified the plot width as 800. After I saved the plot to pdf and inspected the properties, the width seems to be 194mm, which is around 550 pt.

What are the default units of length in PGFPlotsX? Is there a way to change them?

---

<div class="post-metadata">

**Author:** ![BeastyBlacksmith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/beastyblacksmith/32/4741_2.png) [@BeastyBlacksmith](https://discourse.julialang.org/u/BeastyBlacksmith)\
**Post date:** [October 7, 2022, 7:54am UTC](https://discourse.julialang.org/t/default-length-unit-with-pgfplotsx-and-plots/88367/2 "2022-10-07T07:54:49Z")

</div>

The default unit for plot size is px and according to the source code 100px should equal to 1inch.  
Which seems to hold only roughly in this case.

---

<div class="post-metadata">

**Author:** ![Gregstrq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gregstrq/32/20620_2.png) [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Post date:** [October 7, 2022, 8:52am UTC](https://discourse.julialang.org/t/default-length-unit-with-pgfplotsx-and-plots/88367/3 "2022-10-07T08:52:06Z")

</div>

Are all the other sizes also measured in px? If I specify the fontsize with PGFPlotsX, is it in pt, or in px?

---

<div class="post-metadata">

**Author:** ![BeastyBlacksmith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/beastyblacksmith/32/4741_2.png) [@BeastyBlacksmith](https://discourse.julialang.org/u/BeastyBlacksmith)\
**Post date:** [October 7, 2022, 12:40pm UTC](https://discourse.julialang.org/t/default-length-unit-with-pgfplotsx-and-plots/88367/4 "2022-10-07T12:40:56Z")

</div>

fontsize is in pt
