# Ternary axis with PGFplotsX?

**URL:** <https://discourse.julialang.org/t/ternary-axis-with-pgfplotsx/62442>\
**Category:** Visualization\
**Tags:** pgfplotsx\
**Created:** [June 5, 2021, 3:39pm UTC](https://discourse.julialang.org/t/ternary-axis-with-pgfplotsx/62442 "2021-06-05T15:39:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![EvoArt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/evoart/32/25357_2.png) [@EvoArt](https://discourse.julialang.org/u/EvoArt)\
**Post date:** [June 5, 2021, 3:39pm UTC](https://discourse.julialang.org/t/ternary-axis-with-pgfplotsx/62442/1 "2021-06-05T15:39:31Z")

</div>

Is there any way to use ternary axes in PGFplotsX.i had a stab at passing in raw latex arguments. But I guess it probably won’t be possible, since the choice of axis type is specified by choice of function eg Axis(args) or PolarAxis(args).

---

<div class="post-metadata">

**Author:** ![BambOoxX](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bambooxx/32/22179_2.png) [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Post date:** [June 5, 2021, 4:05pm UTC](https://discourse.julialang.org/t/ternary-axis-with-pgfplotsx/62442/2 "2021-06-05T16:05:30Z")

</div>

Pgfplots itself supports ternary axes, see [tikz pgf - Draw a surface on a ternary diagram with pgfplots - TeX - LaTeX Stack Exchange](https://tex.stackexchange.com/questions/276496/draw-a-surface-on-a-ternary-diagram-with-pgfplots) for instance.  
However I do not know if there is an interface to this in PGFplotsX.

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [June 5, 2021, 6:14pm UTC](https://discourse.julialang.org/t/ternary-axis-with-pgfplotsx/62442/3 "2021-06-05T18:14:23Z")

</div>

Just adding a new instance similar to [PGFPlotsX.jl/axislike.jl at 5145243095622247e8419b1fb4d0fa7d87ac627e · KristofferC/PGFPlotsX.jl · GitHub](https://github.com/KristofferC/PGFPlotsX.jl/blob/5145243095622247e8419b1fb4d0fa7d87ac627e/src/axislike.jl#L69-L74) should be enough to support it properly.

[https://github.com/KristofferC/PGFPlotsX.jl/pull/269](https://github.com/KristofferC/PGFPlotsX.jl/pull/269) is a PR to add it
