data = Table[
Sin[x] Cos[y] + 0.05 x y, {x, 0, 2 Pi, 0.1}, {y, 0, 2 Pi, 0.1}];
MatrixPlot[data,
PlotLegends ->
Placed[BarLegend[Automatic, LegendMarkerSize -> 100,
LegendLabel ->
Placed[Style[Text["(Text for Label)"], Red, FontSize -> 22],
Top]], Right], AspectRatio -> 2]
I really have to questions:
updated
- how can I rotate (90
Degree
, see fig below) the redLegendLabel
to be aligned withBarLegend
? - I want to extract the color scheme in the
MatrixPlot
so I can use it inDensityPlot
.