# How to reset camera in Makie/GLMakie

**URL:** <https://discourse.julialang.org/t/how-to-reset-camera-in-makie-glmakie/103220>\
**Category:** General Usage\
**Tags:** plotting\
**Created:** [August 26, 2023, 1:05pm UTC](https://discourse.julialang.org/t/how-to-reset-camera-in-makie-glmakie/103220 "2023-08-26T13:05:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tgf314](https://avatars.discourse-cdn.com/v4/letter/t/7c8e57/32.png) [@tgf314](https://discourse.julialang.org/u/tgf314)\
**Post date:** [August 26, 2023, 1:05pm UTC](https://discourse.julialang.org/t/how-to-reset-camera-in-makie-glmakie/103220/1 "2023-08-26T13:05:22Z")

</div>

Specifically I am plotting an image on an Axis using image!. I can can zoom and pan with mouse but I want to create a function to reset the camera to its initial state. What is a good way to do that ?

---

<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:** [August 26, 2023, 3:02pm UTC](https://discourse.julialang.org/t/how-to-reset-camera-in-makie-glmakie/103220/2 "2023-08-26T15:02:10Z")

</div>

ctrl + click or `reset_limits!(ax)`

---

<div class="post-metadata">

**Author:** ![tgf314](https://avatars.discourse-cdn.com/v4/letter/t/7c8e57/32.png) [@tgf314](https://discourse.julialang.org/u/tgf314)\
**Post date:** [August 26, 2023, 3:59pm UTC](https://discourse.julialang.org/t/how-to-reset-camera-in-makie-glmakie/103220/3 "2023-08-26T15:59:35Z")

</div>

Wow, thanks. You probably saved me a couple of days worth of time, I was completely going down the wrong path on this.
