# Appearance of log axis in Plots

**URL:** <https://discourse.julialang.org/t/appearance-of-log-axis-in-plots/24553>\
**Category:** General Usage\
**Created:** [May 24, 2019, 4:25am UTC](https://discourse.julialang.org/t/appearance-of-log-axis-in-plots/24553 "2019-05-24T04:25:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nathaniel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nathaniel/32/37854_2.png) [@Nathaniel](https://discourse.julialang.org/u/Nathaniel)\
**Post date:** [May 24, 2019, 4:25am UTC](https://discourse.julialang.org/t/appearance-of-log-axis-in-plots/24553/1 "2019-05-24T04:25:08Z")

</div>

In Plots, using `xaxis=:log`, I get evenly spaced tick marks, like this:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/2/d/2d3178098ba06b155f6fad184bee62bdd54ed597.png)

However, in my case I would much prefer unevenly spaced tickmarks representing uniform intervals, as in this image generated with matplotlib:  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/b/7/b70fef2f15a0b9599b8ece13274d93dc1a33888a.png)

Is it possible to achieve this?

---

<div class="post-metadata">

**Author:** ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Post date:** [May 24, 2019, 7:34am UTC](https://discourse.julialang.org/t/appearance-of-log-axis-in-plots/24553/2 "2019-05-24T07:34:37Z")

</div>

I believe the plotlyjs backend does this by default

---

<div class="post-metadata">

**Author:** ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Post date:** [May 24, 2019, 7:34am UTC](https://discourse.julialang.org/t/appearance-of-log-axis-in-plots/24553/3 "2019-05-24T07:34:55Z")

</div>

I agree, btw

---

<div class="post-metadata">

**Author:** ![Nathaniel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nathaniel/32/37854_2.png) [@Nathaniel](https://discourse.julialang.org/u/Nathaniel)\
**Post date:** [May 25, 2019, 2:40am UTC](https://discourse.julialang.org/t/appearance-of-log-axis-in-plots/24553/4 "2019-05-25T02:40:27Z")

</div>

I’m new to juila, so there might be good reasons against it, but from a user perspective I don’t think this should be backend dependent. There should be an option in the API to choose between them.

By the way, I posted this also on Stack Overflow, where someone has suggested a way to ‘roll my own’ tick marks. It’s not a satisfying solution in general, but it will work for now. [plots.jl - Log axis appearance in julia/Plots - Stack Overflow](https://stackoverflow.com/questions/56285374/log-axis-appearance-in-julia-plots/56299725#56299725)

---

<div class="post-metadata">

**Author:** ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Post date:** [May 25, 2019, 3:22am UTC](https://discourse.julialang.org/t/appearance-of-log-axis-in-plots/24553/5 "2019-05-25T03:22:34Z")

</div>

Having log scale lines is a really good visual way to alert the viewer that a plot is logarithmic.

---

<div class="post-metadata">

**Author:** ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Post date:** [May 25, 2019, 7:13am UTC](https://discourse.julialang.org/t/appearance-of-log-axis-in-plots/24553/6 "2019-05-25T07:13:31Z")

</div>

> [@Nathaniel](#):
>
> I don’t think this should be backend dependent. There should be an option in the API to choose between them.

I agree - it’s just a question of implementing it.
