# Makie axis tick relabelling, marching cubes algorithm output

**URL:** https://discourse.julialang.org/t/makie-axis-tick-relabelling-marching-cubes-algorithm-output/109077
**Category:** Visualization
**Tags:** package, makie, glmakie, axiskeys
**Created:** [January 21, 2024, 9:42pm UTC](https://discourse.julialang.org/t/makie-axis-tick-relabelling-marching-cubes-algorithm-output/109077 "2024-01-21T21:42:07Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Mahnoor\_Pop](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mahnoor_pop/32/205364_2.png) [@Mahnoor\_Pop](https://discourse.julialang.org/u/Mahnoor_Pop)
#### Post date: [January 21, 2024, 9:42pm UTC](https://discourse.julialang.org/t/makie-axis-tick-relabelling-marching-cubes-algorithm-output/109077/1 "2024-01-21T21:42:07Z")

</div>

Hi all! I’m plotting a mesh made using MarchingCubes.jl and want to readjust the axis tick labels. Currently, the values just represent how many cubes there are along each dimension (e.g. 0:11 x 0:11 x 0:11), but I want them to be the actual values of the initial points (-1:2 x -1:2 x -1:2)/ I tried changing xticks like so:

```julia
 # need to fix axes
    ax = Axis3(f[1,1], title = "Marching Cubes Mesh of Basin of Attraction",
    )
    fig = mesh!(msh; color = :gray)
    
    ax.xticks = range(-1, 2, length = 11)

```

and this was my result:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/8/5/8536b2e462c1e9f91bf7c726894ad1757337a165.png)  
Which has just put labels on those points, but not relabelled the whole x-axis.  
I know that in the MarchingCubes.jl package there’s some sort of scaling option, but I don’t really understand how it works…

 ![image](https://global.discourse-cdn.com/julialang/original/3X/4/d/4d0d4657a8edbb0f1f1437bc34bb49486e732b88.png)

Many thanks!

---

<div class="post-metadata">

### Author: ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)
#### Post date: [January 21, 2024, 9:47pm UTC](https://discourse.julialang.org/t/makie-axis-tick-relabelling-marching-cubes-algorithm-output/109077/2 "2024-01-21T21:47:13Z")

</div>

You’re currently choosing different tick _positions_ but you want different tick _labels_. So you need to pass a tuple (positions, labels) to xticks

---

<div class="post-metadata">

### Author: ![Mahnoor\_Pop](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mahnoor_pop/32/205364_2.png) [@Mahnoor\_Pop](https://discourse.julialang.org/u/Mahnoor_Pop)
#### Post date: [January 22, 2024, 12:08am UTC](https://discourse.julialang.org/t/makie-axis-tick-relabelling-marching-cubes-algorithm-output/109077/3 "2024-01-22T00:08:33Z")

</div>

thanks a lot! works great 🙂
