(Plots) how to set color of y-axis border and ticks

Hi,
I’m using Plots with GR backend.

I’d like to know how to set the color of y-axis border and ticks.

1 Like
using Plots;gr()

x=rand(10)
p = plot(x,xlabel="x axis",ylabel="y axis", lc=:blue, lw=3)
plot!(x_guidefontcolor=:red, y_guidefontcolor=:green)
plot!(x_foreground_color_axis=:red, y_foreground_color_axis=:green)
plot!(x_foreground_color_text=:red, y_foreground_color_text=:green)
plot!(x_foreground_color_border=:red, y_foreground_color_border=:green)

Plots_gr_colored_axis_and_labels

2 Likes