# How to rotate a Meshes.jl graphic?

**URL:** https://discourse.julialang.org/t/how-to-rotate-a-meshes-jl-graphic/104865
**Category:** General Usage
**Tags:** plotting
**Created:** [October 11, 2023, 4:32pm UTC](https://discourse.julialang.org/t/how-to-rotate-a-meshes-jl-graphic/104865 "2023-10-11T16:32:14Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![\_stla](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/_stla/32/35613_2.png) [@\_stla](https://discourse.julialang.org/u/_stla)
#### Post date: [October 11, 2023, 4:32pm UTC](https://discourse.julialang.org/t/how-to-rotate-a-meshes-jl-graphic/104865/1 "2023-10-11T16:32:14Z")

</div>

Hello,

To rotate a Meshes.jl graphic, I do:

```julia
  fig, ax, plt = MeshViz.viz(
    Meshes.Box(Meshes.Point(-2.5, -2.5, -0.5), Meshes.Point(2.5, 2.5, 1.5)); 
    alpha = 0
  ) # bounding box to fix the frame
  ax.show_axis = false
  draw(i) # my function which draws frame number i
  Makie.scale!(ax.scene, 1.6, 1.6, 1.6)
  Makie.rotate!(ax.scene, 1.5, 0, 0)

```

But I go blindly. I’d like to render the interactive graphic, to rotate it with the mouse until I get a satisfactory orientation, and then to get the parameters of this rotation, in order to pass them to `Makie.rotate!`. Is it possible to print the rotation parameters while moving the interactive graphic?

I hope my question is clear…
