# Makie: fitting of x- or y-axes to visible data range?

**URL:** <https://discourse.julialang.org/t/makie-fitting-of-x-or-y-axes-to-visible-data-range/69758>\
**Category:** Visualization\
**Tags:** makie\
**Created:** [October 14, 2021, 2:25pm UTC](https://discourse.julialang.org/t/makie-fitting-of-x-or-y-axes-to-visible-data-range/69758 "2021-10-14T14:25:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bardo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bardo/32/21601_2.png) [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Post date:** [October 14, 2021, 2:25pm UTC](https://discourse.julialang.org/t/makie-fitting-of-x-or-y-axes-to-visible-data-range/69758/1 "2021-10-14T14:25:13Z")

</div>

How to optimally fit an x- or y-axis to visible data?  
(the automatic equivalent of manually x- or y-axis zooming)

Related:  
How to get the minimum/maximum coordinates of visible zoomed in data?
