Axis Label Colors in Plots.jl

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

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

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

3 Likes

According to the latest documentation, it is now

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

image

2 Likes