Learning Plots... now: marker_z?

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

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

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

1 Like