logo

How to Color Markers in a Julia Fractal 📂Julia

How to Color Markers in a Julia Fractal

Code

using Plots
x, y = rand(100), rand(100)

Given the data above, depending on whether the data is continuous or categorical, the shape of the plot and the method of plotting differ.

Continuous scatter(marker_z=)

z = x + y
scatter(x, y, marker_z = z)

Categorical scatter(group=) 1

team = rand('A':'C', 100)
scatter(x, y, group = team)

Environment

  • OS: Windows
  • julia: v1.8.3