Message Boards Message Boards

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

[?] Set Legend scaling - converting it to angular frequency?

Posted 6 years ago

Hello!

Is there a possibility to manipulate the legend scale? By using

PlotLegends -> Automatic

I get a following scaling (refer to image). The scaling represents the phase of the optical wave. Is it possible to show or convert it to values of angular frequency? I mean from 0 to 2Pi

enter image description here

POSTED BY: Nikki Peter
3 Replies

Try something like:

PlotLegends -> BarLegend[{"DeepSeaColors", {0, 2 Pi + 0.01}}, Ticks -> ({#, #} & /@ Range[0, 2 Pi, Pi/2])]
POSTED BY: Sander Huisman
Posted 6 years ago

Hi,

just the ticks of the legend!

POSTED BY: Nikki Peter

Just rescale your plot data?

or do you mean the ticks of the legend?

POSTED BY: Sander Huisman
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