# Argument for number of axis ticks

**URL:** <https://discourse.julialang.org/t/argument-for-number-of-axis-ticks/76817>\
**Category:** Visualization\
**Tags:** plots\
**Created:** [February 20, 2022, 7:59pm UTC](https://discourse.julialang.org/t/argument-for-number-of-axis-ticks/76817 "2022-02-20T19:59:39Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [February 20, 2022, 9:59pm UTC](https://discourse.julialang.org/t/argument-for-number-of-axis-ticks/76817/2 "2022-02-20T21:59:18Z")

</div>

There are a number of knobs to turn in Plots.jl. For instance, you could use the argument `formatter` and an adequate font size:

```julia
using Formatting, Plots; gr()
x = -6:0.01:6
plot(x, sin, formatter = x -> format(x, precision=2), tickfontsize=10)

```

**NB:** there are also individual `xformatter` and `yformatter`

---

_[View the full topic](https://discourse.julialang.org/t/argument-for-number-of-axis-ticks/76817)._
