How can I invert the grayscale colors when using MatrixPlot
? My data is between 0 and 1 and the color scheme when using GrayLevel
is white for 1, black for 0. I do not want to simply invert the data, because in that case the legends won't be correct.
MatrixPlot[data, ColorFunction -> GrayLevel]