# How to use labels instead of numbers in xtick and ytick

**URL:** https://discourse.julialang.org/t/how-to-use-labels-instead-of-numbers-in-xtick-and-ytick/79006
**Category:** General Usage
**Tags:** plotting, plots
**Created:** [April 4, 2022, 1:42pm UTC](https://discourse.julialang.org/t/how-to-use-labels-instead-of-numbers-in-xtick-and-ytick/79006 "2022-04-04T13:42:57Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Christopher\_Fisher](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher_fisher/32/26132_2.png) [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)
#### Post date: [April 4, 2022, 1:42pm UTC](https://discourse.julialang.org/t/how-to-use-labels-instead-of-numbers-in-xtick-and-ytick/79006/1 "2022-04-04T13:42:57Z")

</div>

Hi all,

I would like to use labels “low” and “high” on the x and y axis rather than numbers. For example, on the y-axis, “low” would be on the bottom and “high” would be on the top. I could potentially use annotate for the low, high and the axis labels, but this seems inelegant. Is there a better way?

Thanks!

using Plots

```julia
plot(
    grid = false,
    size = (240,130),
    xlabel = "dimension 1",
    ylabel = "dimension 2",
    framestyle = :box,
    xlims = (0,1),
    ylims = (0,1),
    linewidth = 1,
    xticks = [],
    yticks = [],
)

hline!([.50], linestyle=:dash, color=:black,label="")
vline!([.50], linestyle=:dash, color=:black,label="")

```

---

<div class="post-metadata">

### Author: ![gustaphe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gustaphe/32/18174_2.png) [@gustaphe](https://discourse.julialang.org/u/gustaphe)
#### Post date: [April 4, 2022, 1:49pm UTC](https://discourse.julialang.org/t/how-to-use-labels-instead-of-numbers-in-xtick-and-ytick/79006/2 "2022-04-04T13:49:10Z")

</div>

```julia
xticks=([-1,1], ["low", "high"])

```

---

<div class="post-metadata">

### Author: ![Christopher\_Fisher](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher_fisher/32/26132_2.png) [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)
#### Post date: [April 4, 2022, 1:57pm UTC](https://discourse.julialang.org/t/how-to-use-labels-instead-of-numbers-in-xtick-and-ytick/79006/3 "2022-04-04T13:57:51Z")

</div>

Thanks again!
