# Learning Plots... now: marker\_z?

**URL:** https://discourse.julialang.org/t/learning-plots-now-marker-z/9996
**Category:** Visualization
**Created:** [March 26, 2018, 7:56pm UTC](https://discourse.julialang.org/t/learning-plots-now-marker-z/9996 "2018-03-26T19:56:56Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![JackDevine](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jackdevine/32/1048_2.png) [@JackDevine](https://discourse.julialang.org/u/JackDevine)
#### Post date: [March 26, 2018, 8:28pm UTC](https://discourse.julialang.org/t/learning-plots-now-marker-z/9996/3 "2018-03-26T20:28:02Z")

</div>

It is weird that GR and PyPlot give different answers here…

That said, I am not precisely sure of what you expected to happen. If you just use

```julia-auto
plot(xm,ym,seriestype=:scatter,markershape=:circle,linecolor=false,marker_z=1:100)

```

then you will find that the code will work the same on both backends. The difference here is that I added `seriestype=:scatter`. So the moral of the story is that `scatter` and `plot` do different things.

From the documentation:

> `line_z` and `marker_z` parameters will map data values into a `ColorGradient` value

I hope that this helps.

PS: Have a look at this post on backticks

> [@PSA: how to quote code with backticks](https://discourse.julialang.org/t/psa-how-to-quote-code-with-backticks/7530):
>
> This is a short post on how to use backticks (` and ```) to quote code, so it is easy to read. This post can be linked to new users who are confused by this feature. Why By quoting your code, you get a monospaced font (which preserves indentation) and syntax highlighting. This makes it easier to read your code and help you. Displayed code looks like this: function displayed\_code(x::Int, y::Int) if x \< y println("x is smaller") else println("or not") end end Inline…

It allows you to get your code looking beautiful on discourse. It might help if you try asking a more complex question.

---

_[View the full topic](https://discourse.julialang.org/t/learning-plots-now-marker-z/9996)._
