# How to color points in scatter plot by value?

**URL:** https://discourse.julialang.org/t/how-to-color-points-in-scatter-plot-by-value/11740
**Category:** General Usage
**Tags:** plotting
**Created:** [June 17, 2018, 11:03pm UTC](https://discourse.julialang.org/t/how-to-color-points-in-scatter-plot-by-value/11740 "2018-06-17T23:03:16Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![feanor12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/feanor12/32/8212_2.png) [@feanor12](https://discourse.julialang.org/u/feanor12)
#### Post date: [July 19, 2020, 5:24pm UTC](https://discourse.julialang.org/t/how-to-color-points-in-scatter-plot-by-value/11740/10 "2020-07-19T17:24:16Z")

</div>

In plots.jl there is the option of using marker\_z.

```julia
using Plots
x= rand(10)
y= rand(10)
z= rand(10)
scatter(x,y,marker_z=z)

```

---

_[View the full topic](https://discourse.julialang.org/t/how-to-color-points-in-scatter-plot-by-value/11740)._
