I am looking for the best way plotting a parameter space using
Plots.jl. Essentially, I have a matrix of 0s and 1s and possibly a few other values. The outcome should look similar to a contour plot, but with
fill=true and only a discrete number of values. I would like then to have a legend that says something like
White: 1 = “Description for White/value 1”
Black: 0 = “Description for Black/value 0”
I don’t need the whole gradient as is standard with
legend = true, since the values between whole numbers are meaningless for me and don’t appear in my matrix anyway.
Can I tune
contour() somehow for that purpose or is there a better way of doing it?
Thanks a lot!