# Axis Label Colors in Plots.jl

**URL:** <https://discourse.julialang.org/t/axis-label-colors-in-plots-jl/10391>\
**Category:** Visualization\
**Created:** [April 17, 2018, 3:14pm UTC](https://discourse.julialang.org/t/axis-label-colors-in-plots-jl/10391 "2018-04-17T15:14:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gideonsimpson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gideonsimpson/32/1928_2.png) [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Post date:** [April 17, 2018, 3:14pm UTC](https://discourse.julialang.org/t/axis-label-colors-in-plots-jl/10391/1 "2018-04-17T15:14:10Z")

</div>

How do I control the color of the axes labels in `Plots.jl`?

---

<div class="post-metadata">

**Author:** ![daschw](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/daschw/32/2926_2.png) [@daschw](https://discourse.julialang.org/u/daschw)\
**Post date:** [April 17, 2018, 3:38pm UTC](https://discourse.julialang.org/t/axis-label-colors-in-plots-jl/10391/2 "2018-04-17T15:38:44Z")

</div>

`plot(rand(10), xlabel = "x", ylabel = "y", xguidefont = font(:red), yguidefont = font(:blue))`

For simple usage questions like this I recommend first scanning [Overview · Plots](http://docs.juliaplots.org/latest/attributes/) and then asking on the Plots gitter channel ([tbreloff/Plots.jl - Gitter](https://gitter.im/tbreloff/Plots.jl)) or on the plotting channel on slack ([https://julialang.slack.com/](https://julialang.slack.com/)).

---

<div class="post-metadata">

**Author:** ![Shuhua](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/shuhua/32/27618_2.png) [@Shuhua](https://discourse.julialang.org/u/Shuhua)\
**Post date:** [March 7, 2021, 3:26am UTC](https://discourse.julialang.org/t/axis-label-colors-in-plots-jl/10391/3 "2021-03-07T03:26:43Z")

</div>

According to the latest [documentation](http://docs.juliaplots.org/latest/generated/attributes_axis/), it is now

```julia
plot(1:20, randn(20); size=(400, 300), 
    ylabel="red y", yguidefontcolor=:red,
    xlabel="green x", xguidefontcolor=:green)

```

![image](https://global.discourse-cdn.com/julialang/original/3X/d/a/dac4a1a8138c20c91da11e0993f54c07c0c3573b.png)
