How do I change this code so the desired BarLegend
is displayed?
color[x_] := Blend[{Black, RGBColor[1, 0, 0, 0.2], Red}, x];
BarLegend[color]
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this community