Hello everyone,Here, I want to add bar legend showing values of g[t]. Is there any way to do it? Thanks in advance.
Try this:
g[t_] := t^3 + 3*t + 12; DensityPlot[g[Norm[{x, y}] - 1], Element[{x, y}, Annulus[{0, 0}, {1, 2}]], PlotLegends -> Automatic, ColorFunction -> "SolarColors"]
I would do it with DensityPlot:
DensityPlot
g[t_] := t^3 + 3*t + 12; DensityPlot[g[Norm[{x, y}]], Element[{x, y}, Annulus[{0, 0}, {1, 2}]], PlotLegends -> Automatic]
Note, Here I have plotted f[t] and I need bar legend showing g[t]. That is the main issue here.