Consider the following data and corresponding ListDensityPlot
:
data = RandomReal[{0.0001, 0.0003}, {10, 10}];
ListDensityPlot[data, ColorFunction -> "SunsetColors",
ColorFunctionScaling -> True,
PlotLegends ->
BarLegend[Automatic, LegendLabel -> "Density",
LabelStyle -> Directive[Black, 14]]]
I want to make the legends bar of the form 1.3e-4,...,3e-4
, while by default, it displays as 0.000125,..
.
Could you please tell me how to achieve this?