# Changing the interval of the axis in plots.jl

**URL:** https://discourse.julialang.org/t/changing-the-interval-of-the-axis-in-plots-jl/118936
**Category:** New to Julia
**Tags:** plots
**Created:** [September 2, 2024, 10:30am UTC](https://discourse.julialang.org/t/changing-the-interval-of-the-axis-in-plots-jl/118936 "2024-09-02T10:30:02Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![raiyan\_rohit](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raiyan_rohit/32/211740_2.png) [@raiyan\_rohit](https://discourse.julialang.org/u/raiyan_rohit)
#### Post date: [September 2, 2024, 10:30am UTC](https://discourse.julialang.org/t/changing-the-interval-of-the-axis-in-plots-jl/118936/1 "2024-09-02T10:30:02Z")

</div>

![Screenshot 2024-09-02 162515](https://global.discourse-cdn.com/julialang/original/3X/3/e/3ec44d5bd5ea0a7bfae292fafed70145aa3d3342.png)

I was using plots . In the graph the interval between the x axis is 5 unit . i want to have grids with 1 unit . how can I do that . the same goes for y axis . need help

---

<div class="post-metadata">

### Author: ![BeastyBlacksmith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/beastyblacksmith/32/4741_2.png) [@BeastyBlacksmith](https://discourse.julialang.org/u/BeastyBlacksmith)
#### Post date: [September 2, 2024, 11:45am UTC](https://discourse.julialang.org/t/changing-the-interval-of-the-axis-in-plots-jl/118936/2 "2024-09-02T11:45:51Z")

</div>

`plot(..., xticks = 0:20, yticks = 0:400)`
