# Figure not fitting in the frame with Plots.jl

**URL:** <https://discourse.julialang.org/t/figure-not-fitting-in-the-frame-with-plots-jl/122874>\
**Category:** General Usage\
**Tags:** plots\
**Created:** [November 20, 2024, 11:04pm UTC](https://discourse.julialang.org/t/figure-not-fitting-in-the-frame-with-plots-jl/122874 "2024-11-20T23:04:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tduretz](https://avatars.discourse-cdn.com/v4/letter/t/bcef8e/32.png) [@tduretz](https://discourse.julialang.org/u/tduretz)\
**Post date:** [November 20, 2024, 11:04pm UTC](https://discourse.julialang.org/t/figure-not-fitting-in-the-frame-with-plots-jl/122874/1 "2024-11-20T23:04:32Z")

</div>

Hi, I’m making a figure with Plots.jl and GR backend.  
I have an issue as the figure does not fully fit in the frame: the colorbar annotations are cut out on the right side.

 ![image](https://global.discourse-cdn.com/julialang/original/3X/4/d/4dc15e0d361638005ed42f443dcc9dcb1b082325.png)  
Is there a simple workaround for this (else than using another package or changing units)? Thanks and cheers!  
Below is a MWE:

```julia
x = LinRange(-180, 180, 100)
y = LinRange(-90, 90, 100)
A = x.*1e-15 .+ 0 .*y'
plot(title="Title")
plot!(xlabel="x", ylabel="y")
heatmap!(x, y, A', colorbar=:legend)

```

---

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [November 21, 2024, 6:27am UTC](https://discourse.julialang.org/t/figure-not-fitting-in-the-frame-with-plots-jl/122874/2 "2024-11-21T06:27:49Z")

</div>

[Same problem](https://discourse.julialang.org/t/heatmap-wrong-colorbar-number-resolution-limits/110209/4), same answer.
