# Length and setting of ticks

**URL:** <https://discourse.julialang.org/t/length-and-setting-of-ticks/70952>\
**Category:** Visualization\
**Tags:** plots\
**Created:** [November 4, 2021, 1:51pm UTC](https://discourse.julialang.org/t/length-and-setting-of-ticks/70952 "2021-11-04T13:51:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mixstam1453](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mixstam1453/32/23731_2.png) [@mixstam1453](https://discourse.julialang.org/u/mixstam1453)\
**Post date:** [November 4, 2021, 1:51pm UTC](https://discourse.julialang.org/t/length-and-setting-of-ticks/70952/1 "2021-11-04T13:51:29Z")

</div>

hello, i am new in Plots.jl and i would like to put ticks in all my axis of the plot with framestyle=:box . Here is my code with the default function:

```julia
x = 0:0.1:2pi ; y1 = cos.(x) 

default(fontfamily ="New Century Schoolbook Roman", framestyle=:box,gridstyle=:dot,minorticks=:true,gridcolor=:black, minorgridcolor=:black,minorgrid=true,minorgridalpha=0.2,minorgridstyle=:dot,gridalpha=0.4) 

plot(x,y1)

```

Also how can i edit the length of the ticks(major and minor) ? Thank you.

---

<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:** [November 4, 2021, 3:48pm UTC](https://discourse.julialang.org/t/length-and-setting-of-ticks/70952/2 "2021-11-04T15:48:35Z")

</div>

You can find [in this post](https://discourse.julialang.org/t/full-border-with-ticks/25060/12) a `Plots.jl` solution to the first question, and a `PGFPlotsX.jl` solution (_from PGFPlots manual:_ `major tick length` and `minor tick length`) to the second one.

---

<div class="post-metadata">

**Author:** ![LeePhillips](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/leephillips/32/205514_2.png) [@LeePhillips](https://discourse.julialang.org/u/LeePhillips)\
**Post date:** [November 4, 2021, 7:52pm UTC](https://discourse.julialang.org/t/length-and-setting-of-ticks/70952/3 "2021-11-04T19:52:35Z")

</div>

You might try Gaston.jl, as gnuplot uses the style you want by default, and has settings for tick length (I have not tried doing this with Gaston myself).
