# Transparent series points on a plot

**URL:** <https://discourse.julialang.org/t/transparent-series-points-on-a-plot/69569>\
**Category:** Visualization\
**Tags:** colors, plots\
**Created:** [October 11, 2021, 4:17pm UTC](https://discourse.julialang.org/t/transparent-series-points-on-a-plot/69569 "2021-10-11T16:17:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pthompson234](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pthompson234/32/24339_2.png) [@pthompson234](https://discourse.julialang.org/u/pthompson234)\
**Post date:** [October 11, 2021, 4:17pm UTC](https://discourse.julialang.org/t/transparent-series-points-on-a-plot/69569/1 "2021-10-11T16:17:35Z")

</div>

Hi, this may be a simple question, but I would like to make a scatter plot where all markers have the same color, but some are more transparent than others. To do this, I have constructed a vector of `RGBA` objects, like below:

`fading_colors = RGBA.(0.5, 0.5, 0.5, 0.1:0.1:1.0)`

This is supposed to produce an array of grays where each increasing index is less and less transparent. This can be seen below when viewing the object:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/8/b/8b86956828ea1c024b1f9d4c7b9ede18adb770ca.png)

When I plot these points (see the command below and the image), none of them are transparent. The gray color carries over though, so I can tell it’s seeing my object somehow. Any thoughts?

`plot(1:10, 1:10, seriestype = :scatter, seriescolor = fading_colors, legend = false)`

 ![image](https://global.discourse-cdn.com/julialang/original/3X/8/2/82aee60adf006b315ff6b3d126041eefd662228d.png)

---

<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:** [October 11, 2021, 4:43pm UTC](https://discourse.julialang.org/t/transparent-series-points-on-a-plot/69569/2 "2021-10-11T16:43:18Z")

</div>

Need to use alpha argument:

```julia
using Plots; gr()
fc = RGBA.(0.5, 0.5, 0.5, 0.1:0.1:1.0)
scatter(1:10, 1:10, c=fc, alpha=fc, legend=false)

```

![Plots_gr_scatter_RGBA_alpha_channel](https://global.discourse-cdn.com/julialang/original/3X/5/5/552bfe8d4a5e2bd8d90f540844193d8d3311d4d5.png)
