# How to add an inset to a plot

**URL:** <https://discourse.julialang.org/t/how-to-add-an-inset-to-a-plot/37189>\
**Category:** New to Julia\
**Tags:** question, plotting\
**Created:** [April 7, 2020, 7:48pm UTC](https://discourse.julialang.org/t/how-to-add-an-inset-to-a-plot/37189 "2020-04-07T19:48:49Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![SDA](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@SDA](https://discourse.julialang.org/u/SDA)\
**Post date:** [May 11, 2021, 3:02am UTC](https://discourse.julialang.org/t/how-to-add-an-inset-to-a-plot/37189/13 "2021-05-11T03:02:46Z")

</div>

Hi alequa,

Did you figure out how to do this? I too would like to include an inset that is the same plot as the main figure but with a different xlims defined.

Kind regards  
SDA

---

_[View the full topic](https://discourse.julialang.org/t/how-to-add-an-inset-to-a-plot/37189)._
