# Adjusting Weight and Legends with Plotting

**URL:** <https://discourse.julialang.org/t/adjusting-weight-and-legends-with-plotting/29491>\
**Category:** New to Julia\
**Created:** [October 4, 2019, 3:43pm UTC](https://discourse.julialang.org/t/adjusting-weight-and-legends-with-plotting/29491 "2019-10-04T15:43:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Donald\_Lee](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/donald_lee/32/10622_2.png) [@Donald\_Lee](https://discourse.julialang.org/u/Donald_Lee)\
**Post date:** [October 4, 2019, 3:43pm UTC](https://discourse.julialang.org/t/adjusting-weight-and-legends-with-plotting/29491/1 "2019-10-04T15:43:58Z")

</div>

I’m using Plots and Gadfly pkgs to plot. I’d like to know how to make various adjustments, such as making the x and y-labels bold. I’d also like to know how to be able to move the legend within or to outside of the plot, in the case that it is covering data.

---

<div class="post-metadata">

**Author:** ![Mattriks](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mattriks/32/351_2.png) [@Mattriks](https://discourse.julialang.org/u/Mattriks)\
**Post date:** [October 4, 2019, 6:44pm UTC](https://discourse.julialang.org/t/adjusting-weight-and-legends-with-plotting/29491/2 "2019-10-04T18:44:24Z")

</div>

Welcome to the julia community!

In Gadfly, there are several ways to produce bold labels:

- `Theme(major_label_font = "Arial Bold")` &nbsp;&nbsp;(the font name might be hyphenated)
- `Guide.xlabel("<b>PetalWidth</b>")` &nbsp;&nbsp;(this is Pango markup)
- [Julia unicode input](https://docs.julialang.org/en/v1/manual/unicode-input/) (great for math symbols)

You can mix Pango and unicode, see [this example](https://discourse.julialang.org/t/plotting-histogram-on-the-y-axis-at-the-end-of-a-time-series/5381/4)

For legend inside plot, see example in the [Gadfly docs](http://gadflyjl.org/dev/gallery/guides/#%5BGuide.shapekey%5D(@ref)-1)

---

<div class="post-metadata">

**Author:** ![Donald\_Lee](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/donald_lee/32/10622_2.png) [@Donald\_Lee](https://discourse.julialang.org/u/Donald_Lee)\
**Post date:** [December 5, 2019, 6:11pm UTC](https://discourse.julialang.org/t/adjusting-weight-and-legends-with-plotting/29491/3 "2019-12-05T18:11:14Z")

</div>

Thanks @Mattriks. I’m no longer using Gadfly for plotting, but I’m using PyPlot and StatsPlots. I have the same question regarding bolding axes labels/title/etc. Thanks!
