I am having trouble fixing a value at the barlegends.
contours = Function[{min, max}, Range[min, max, Round[(max - min)/15, 0.01]]];
BarLegend[{"myColorFunction", {0.4, 1}}, contours,
LegendLayout -> "Row", LabelStyle -> {FontSize -> 40},
LegendMarkerSize -> 1000]
BarLegend[{"myColorFunction", {0.25, 1}}, contours,
LegendLayout -> "Row", LabelStyle -> {FontSize -> 40},
LegendMarkerSize -> 1000]
What I want is the first and last value to show up in the barlegends. For example, for the first one value from 0.4 to 1, it would be nice to have contour such that 0.4,0.5,0.6,0.7,0.8,0.9,1. So the first and last value is 0.4 and 1.
Do you have any suggestion?









