# Makie.jl Fixed Perspective when Dragging Mesh

**URL:** https://discourse.julialang.org/t/makie-jl-fixed-perspective-when-dragging-mesh/103835
**Category:** General Usage
**Tags:** makie
**Created:** [September 14, 2023, 4:52am UTC](https://discourse.julialang.org/t/makie-jl-fixed-perspective-when-dragging-mesh/103835 "2023-09-14T04:52:02Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Ian\_L](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ian_l/32/49509_2.png) [@Ian\_L](https://discourse.julialang.org/u/Ian_L)
#### Post date: [September 14, 2023, 4:52am UTC](https://discourse.julialang.org/t/makie-jl-fixed-perspective-when-dragging-mesh/103835/1 "2023-09-14T04:52:02Z")

</div>

I’m using Makie.jl to generate a simple sphere. By default, the plot looks good but I would prefer if it did not resize as the user rotates the axis around. See the figure below for what I currently have.

```julia
f = Figure()
ax_sphere = Axis3(f[1,2], aspect=:data)
n = 50
θ = [0;(0.5:n-0.5)/n;1]
φ = [(0:2n-2)*2/(2n-1);2]
x = [cospi(φ)*sinpi(θ) for θ in θ, φ in φ]
y = [sinpi(φ)*sinpi(θ) for θ in θ, φ in φ]
z = [cospi(θ) for θ in θ, φ in φ]
surface!(ax_sphere, x, y, z)

```

![Screen Shot 2023-09-13 at 11.48.17 PM](https://global.discourse-cdn.com/julialang/original/3X/e/e/eee1399ab10f2e1693ec0f6577003c671e985ab6.png) ![Screen Shot 2023-09-13 at 11.48.26 PM](https://global.discourse-cdn.com/julialang/original/3X/b/9/b90646ad615e38008cbe4a85d29e04ae333226fb.png)

The sphere on the right was rotated by the user and so the grid was resized. Ideally (after hiding the grid), the sphere stays a constant size no matter how it is rotated. I was looking for something similar to [tau app](https://lazarusa.github.io/ClimateVisualisations/app_tau.html) which is exactly what I want.

---

<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: [September 14, 2023, 7:43am UTC](https://discourse.julialang.org/t/makie-jl-fixed-perspective-when-dragging-mesh/103835/2 "2023-09-14T07:43:00Z")

</div>

That’s `ax.viewmode = :fit`, the default is `:fitzoom`
