# Makie Mesh wrong labels after axis scaling

**URL:** https://discourse.julialang.org/t/makie-mesh-wrong-labels-after-axis-scaling/87914
**Category:** Visualization
**Tags:** makie
**Created:** [September 28, 2022, 9:59am UTC](https://discourse.julialang.org/t/makie-mesh-wrong-labels-after-axis-scaling/87914 "2022-09-28T09:59:07Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![verflieger](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/verflieger/32/43037_2.png) [@verflieger](https://discourse.julialang.org/u/verflieger)
#### Post date: [September 28, 2022, 9:59am UTC](https://discourse.julialang.org/t/makie-mesh-wrong-labels-after-axis-scaling/87914/1 "2022-09-28T09:59:07Z")

</div>

Hello,  
I am a little bit lost with plotting a 3D mesh with the Makie mesh function. Because in my given coordinate system, the y axis is flipped compared to the standard of mesh, I rescaled it. However, the axis labels and tick labels are at the wrong position.

 ![makie](https://global.discourse-cdn.com/julialang/original/3X/1/a/1aafef321f839f12ee032e8112c689129ab8d729.png)

here is my MWE:

```julia
using GeometryBasics
using GLMakie, Makie
using Colors

hr = HyperRectangle(Vec(0,0,0),Vec(1.0,2.0,3.0));
m = GeometryBasics.mesh(hr)
p = Makie.mesh(m,color = RGB(rand(3)...),transparency = true)
GLMakie.scale!(p.axis.scene, 1, -1, 1)

```

Is there a way to redraw the axis labels or is there a better way to flip the axis?

---

<div class="post-metadata">

### Author: ![verflieger](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/verflieger/32/43037_2.png) [@verflieger](https://discourse.julialang.org/u/verflieger)
#### Post date: [September 29, 2022, 7:02am UTC](https://discourse.julialang.org/t/makie-mesh-wrong-labels-after-axis-scaling/87914/2 "2022-09-29T07:02:37Z")

</div>

If someone has a similar problem: it seems to work if i create a scene and then use this scene to plot the mesh after rescaling.

```julia
using GeometryBasics
using GLMakie, Makie
using Colors

hr = HyperRectangle(Vec(0,0,0),Vec(1.0,2.0,3.0));
hr2 = HyperRectangle(Vec(1,0,0),Vec(1.0,2.0,1.0));
m = GeometryBasics.mesh(hr)
m2 = GeometryBasics.mesh(hr2)

s = Scene()
Makie.scale!(s,1,-1,1);
Makie.mesh!(s,m,color = RGB(rand(3)...),transparency = true)
Makie.mesh!(s,m2,color = RGB(rand(3)...),transparency = true)

```

It would still be nice to have a different solution to the above problem because then I could use, e.g., the plot3d function from LazySets.jl
