You can’t at the moment. Color gradients in Plots are stretched/interpolated. A classified color map is on the todo:
https://github.com/JuliaPlots/Plots.jl/issues/118
https://github.com/JuliaPlots/Plots.jl/issues/383
https://github.com/JuliaPlots/PlotUtils.jl/issues/3
2 Likes