I have an amplitude distribution function like :
amplitude[x_, y_, a_] = Exp[-a x^2 - Sin[y^2]];
Table[DensityPlot[amplitude[x, y, a], {x, -1, 1}, {y, -3, 3},
ColorFunction -> "Rainbow",
PlotLegends -> Automatic,
ImageSize -> Medium], {a, 1, 4, 1}]
I need a common color BarLegend for all multiple plots such that color distribution in all plots are properly scaled with respect to the the common colored BarLegend.
I have tried the solution offered on somewhat similar question. But the problem is that values of BarLegend is not PROPERLY connected with the colours of the DensityPlot.