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 Overview · Plots and then asking on the Plots gitter channel (tbreloff/Plots.jl - Gitter) 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)
3 Likes