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

**URL:** https://discourse.julialang.org/t/plots-how-to-set-color-of-y-axis-border-and-ticks/58730
**Category:** General Usage
**Tags:** plotting
**Created:** [April 7, 2021, 4:56am UTC](https://discourse.julialang.org/t/plots-how-to-set-color-of-y-axis-border-and-ticks/58730 "2021-04-07T04:56:34Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)
#### Post date: [April 7, 2021, 9:32am UTC](https://discourse.julialang.org/t/plots-how-to-set-color-of-y-axis-border-and-ticks/58730/2 "2021-04-07T09:32:04Z")

</div>

```julia
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](https://global.discourse-cdn.com/julialang/original/3X/3/9/391399f2dca2c9070583c9747f6c461a30950fc1.png)

---

_[View the full topic](https://discourse.julialang.org/t/plots-how-to-set-color-of-y-axis-border-and-ticks/58730)._
