Can I use ColorFunction
in place of color in SwatchlegendSwatchLegend
or is there any way to include ColorFunction
in SwatchlegendSwatchLegend
?
For example, the command
SwatchLegend[{Directive[{"Rainbow", Opacity[0.25]}]},
{Text[Style["f1", FontFamily -> "Times New Roman", 18, Red]]}]
shows only gray color.