# How to change legends place with Plots, gr()?

**URL:** <https://discourse.julialang.org/t/how-to-change-legends-place-with-plots-gr/7294>\
**Category:** Visualization\
**Tags:** question, plotting\
**Created:** [November 24, 2017, 5:00pm UTC](https://discourse.julialang.org/t/how-to-change-legends-place-with-plots-gr/7294 "2017-11-24T17:00:01Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Post date:** [December 17, 2019, 11:33pm UTC](https://discourse.julialang.org/t/how-to-change-legends-place-with-plots-gr/7294/21 "2019-12-17T23:33:03Z")

</div>

probably not - as `colorbar` and `legend` are distinct things

---

<div class="post-metadata">

**Author:** ![mantzaris](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mantzaris/32/3852_2.png) [@mantzaris](https://discourse.julialang.org/u/mantzaris)\
**Post date:** [December 18, 2019, 2:01am UTC](https://discourse.julialang.org/t/how-to-change-legends-place-with-plots-gr/7294/22 "2019-12-18T02:01:14Z")

</div>

Is there a way to change the tick labels of heatmap’s legend directly? Can the legend proportion of the plot be manually sized? I have legend that has labels too large at the moment for a heatmap with small floating point numbers that go across the plotted area

---

<div class="post-metadata">

**Author:** ![photor](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/photor/32/14343_2.png) [@photor](https://discourse.julialang.org/u/photor)\
**Post date:** [May 29, 2020, 10:42pm UTC](https://discourse.julialang.org/t/how-to-change-legends-place-with-plots-gr/7294/23 "2020-05-29T22:42:25Z")

</div>

But how to set legends in GR.jl (not GR as a backend of Plots.jl)?

---

<div class="post-metadata">

**Author:** ![jheinen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jheinen/32/2787_2.png) [@jheinen](https://discourse.julialang.org/u/jheinen)\
**Post date:** [May 30, 2020, 5:31am UTC](https://discourse.julialang.org/t/how-to-change-legends-place-with-plots-gr/7294/24 "2020-05-30T05:31:56Z")

</div>

See this example [here](https://pgi-jcns.fz-juelich.de/pub/doc/covid-19.html).

---

<div class="post-metadata">

**Author:** ![photor](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/photor/32/14343_2.png) [@photor](https://discourse.julialang.org/u/photor)\
**Post date:** [May 31, 2020, 7:45pm UTC](https://discourse.julialang.org/t/how-to-change-legends-place-with-plots-gr/7294/25 "2020-05-31T19:45:33Z")

</div>

A wonderful example! Thank you so much!

---

<div class="post-metadata">

**Author:** ![IljaK91](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iljak91/32/44301_2.png) [@IljaK91](https://discourse.julialang.org/u/IljaK91)\
**Post date:** [August 25, 2020, 9:40am UTC](https://discourse.julialang.org/t/how-to-change-legends-place-with-plots-gr/7294/26 "2020-08-25T09:40:41Z")

</div>

Is there any possibility to do the following:

I run simulations with two different parameter values. I want to showcase the results for four different variables. Therefore, I need only one legend. Optimally, I would like to place it under the 2x2 grid of plots or to the right, without shrinking the size of any individual plot. Any ideas on how do to that?

---

<div class="post-metadata">

**Author:** ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Post date:** [August 25, 2020, 10:46am UTC](https://discourse.julialang.org/t/how-to-change-legends-place-with-plots-gr/7294/27 "2020-08-25T10:46:12Z")

</div>

[http://juliaplots.org/MakieReferenceImages/gallery//faceting/index.html](http://juliaplots.org/MakieReferenceImages/gallery//faceting/index.html)

[Previous page](https://discourse.julialang.org/t/how-to-change-legends-place-with-plots-gr/7294.md?page=1)
