# How to change values on axes

**URL:** <https://discourse.julialang.org/t/how-to-change-values-on-axes/83639>\
**Category:** New to Julia\
**Tags:** question, plotting\
**Created:** [July 1, 2022, 6:38pm UTC](https://discourse.julialang.org/t/how-to-change-values-on-axes/83639 "2022-07-01T18:38:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anthonyrear](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/anthonyrear/32/32856_2.png) [@anthonyrear](https://discourse.julialang.org/u/anthonyrear)\
**Post date:** [July 1, 2022, 6:38pm UTC](https://discourse.julialang.org/t/how-to-change-values-on-axes/83639/1 "2022-07-01T18:38:38Z")

</div>

Hello everyone!

Im trying to develop a neural network using Julia.

But im having trouble plotting the values  
I can reduce my problem and I can propose the next one:  
I dont want to have the x axis from 0 to 200(which are the number of points in S\_plot) I want to have in the x axis **the values** of S\_plot(which are 200 point from 0 to 2)  
How can I do it? Thanks in advance

 ![image](https://global.discourse-cdn.com/julialang/original/3X/7/a/7a6e9766e726e563a1854fc71abd1b36213fc0a5.png)

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [July 1, 2022, 6:48pm UTC](https://discourse.julialang.org/t/how-to-change-values-on-axes/83639/2 "2022-07-01T18:48:41Z")

</div>

```julia
plot(0:2:200, 0:2:200, xticks = (0:2:200, string.(0:2:200)), xrot = 90, label = "")

```

produces:

![image](https://global.discourse-cdn.com/julialang/original/3X/e/f/efa317bf56ad68987cf44c60be27ce79208386ad.png)

---

<div class="post-metadata">

**Author:** ![anthonyrear](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/anthonyrear/32/32856_2.png) [@anthonyrear](https://discourse.julialang.org/u/anthonyrear)\
**Post date:** [July 1, 2022, 6:56pm UTC](https://discourse.julialang.org/t/how-to-change-values-on-axes/83639/3 "2022-07-01T18:56:57Z")

</div>

> [@nilshg](#):
>
> `plot(0:2:200, 0:2:200, xticks = (0:2:200, string.(0:2:200)), xrot = 90, label = "")`

Yes, after seeing your reply I think I just need to swap the axis, so your anwser is good.  
Thanks!!
