# Makie log scale axis with nicer ticks

**URL:** <https://discourse.julialang.org/t/makie-log-scale-axis-with-nicer-ticks/125062>\
**Category:** Visualization\
**Created:** [January 22, 2025, 8:15am UTC](https://discourse.julialang.org/t/makie-log-scale-axis-with-nicer-ticks/125062 "2025-01-22T08:15:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oto\_Brzobohaty](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oto_brzobohaty/32/10370_2.png) [@Oto\_Brzobohaty](https://discourse.julialang.org/u/Oto_Brzobohaty)\
**Post date:** [January 22, 2025, 8:15am UTC](https://discourse.julialang.org/t/makie-log-scale-axis-with-nicer-ticks/125062/1 "2025-01-22T08:15:34Z")

</div>

Is there any way how to set the ticks in log scale axis automatically (default) to be only 10^N, where N is an integer? I do not like the 10^0.5 10^1.5 etc.

---

<div class="post-metadata">

**Author:** ![abraemer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abraemer/32/51403_2.png) [@abraemer](https://discourse.julialang.org/u/abraemer)\
**Post date:** [January 22, 2025, 10:55am UTC](https://discourse.julialang.org/t/makie-log-scale-axis-with-nicer-ticks/125062/2 "2025-01-22T10:55:49Z")

</div>

There is an underdocumented feature for this. See

> [@Makie: adding more ticks to log axis](https://discourse.julialang.org/t/makie-adding-more-ticks-to-log-axis/123878/7):
>
> You can do xticks = LogTicks(0:3) to get 10^0 to 10^3

---

<div class="post-metadata">

**Author:** ![aplavin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aplavin/32/222056_2.png) [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Post date:** [January 22, 2025, 12:38pm UTC](https://discourse.julialang.org/t/makie-log-scale-axis-with-nicer-ticks/125062/3 "2025-01-22T12:38:39Z")

</div>

For more ticks that are at nice readable locations, like 1, 2, 5, 10, 20, 50, … instead of 10^0, 10^0.5, 10^1, …, there’s `BaseMulTicks([1,2,5])` in MakieExtra.jl. It puts ticks at the specified multiples of each base power (10^n by default).  
See the y axis in the examples from the docs:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/9/9/99f1086975504714ea192fbfc889bee306733292.png)

---

<div class="post-metadata">

**Author:** ![Oto\_Brzobohaty](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oto_brzobohaty/32/10370_2.png) [@Oto\_Brzobohaty](https://discourse.julialang.org/u/Oto_Brzobohaty)\
**Post date:** [January 22, 2025, 1:02pm UTC](https://discourse.julialang.org/t/makie-log-scale-axis-with-nicer-ticks/125062/4 "2025-01-22T13:02:57Z")

</div>

Can I add it to user defined theme to be used automatically?
