Scale.color_discrete_hue

Create a discrete color scale to be used for the plot. Scale.discrete_color is an alias for Scale.color_discrete_hue.

Arguments

Examples

This forces the use of a discrete scale on data that would otherwise receive a continuous scale:

plot(x=rand(12), y=rand(12), color=repeat([1,2,3], outer=[4]),
     Scale.color_discrete())
x 0.00 0.25 0.50 0.75 1.00 1 2 3 Color 0.0 0.5 1.0 y