Message Boards Message Boards

0
|
255 Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Add bar legend for a different function

Posted 14 days ago

Hello everyone,
Here, I want to add bar legend showing values of g[t]. Is there any way to do it? Thanks in advance.

POSTED BY: Debojyoti Mondal
3 Replies

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"]
POSTED BY: Gianluca Gorni

I would do it with DensityPlot:

g[t_] := t^3 + 3*t + 12;
DensityPlot[g[Norm[{x, y}]],
 Element[{x, y}, Annulus[{0, 0}, {1, 2}]],
 PlotLegends -> Automatic]
POSTED BY: Gianluca Gorni

Note, Here I have plotted f[t] and I need bar legend showing g[t]. That is the main issue here.

POSTED BY: Debojyoti Mondal
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract