# Light to dark in grid

**URL:** <https://discourse.julialang.org/t/light-to-dark-in-grid/38642>\
**Category:** General Usage\
**Tags:** plotting\
**Created:** [May 3, 2020, 2:10am UTC](https://discourse.julialang.org/t/light-to-dark-in-grid/38642 "2020-05-03T02:10:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Varghese](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@Varghese](https://discourse.julialang.org/u/Varghese)\
**Post date:** [May 3, 2020, 2:10am UTC](https://discourse.julialang.org/t/light-to-dark-in-grid/38642/1 "2020-05-03T02:10:50Z")

</div>

How do I show increasing gradient in hline and vline in gr. For example, here is some code

```julia
pl = plot( xlim = (0,5),ylim = (0,5), legend = false )
vlcolor = palette([:lightgreen, :green],5)
hlcolor = palette([:lightgray, :black],5)
vline!(1:4, color = vlcolor[1:4],line = (3,.9,:dot))
hline!(1:4, color = hlcolor[1:4],line = (2,.9))
display(pl)
display(vlcolor)
display(hlcolor[1:4])
savefig("plot")
savefig("plot.pdf")

```

![plot](https://global.discourse-cdn.com/julialang/original/3X/6/4/6443de06986194a8a30ade12edcd306a8ac8fd46.png)

I want darker ones to the top and to the right. So, if I have another plot to the right with increasing x values, the “xgrid” would continue to get darker. Similarly, if I have a plot on top of it.
