Message Boards Message Boards

How do you create two BarLegends to get small/big values in ContourPlot?

I have attached an image that I found online and accurately shows what I am trying to do. I have a huge range of values, most of which are aroud 0, and a few outliers are very large.

enter image description here

Here is a basic construct:

Legended[
 Plot[x^3, {x, 0, 1}], Row[
  {
   BarLegend[{"Rainbow", {-150, 150}}], 
   BarLegend[{ColorData["Rainbow", 1/2 + #/150] &, {-30, 30}}]
   }
  ]
 ]

creating:

enter image description here

You can use that and customize it...

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