Skip to main content
6 events
when toggle format what by license comment
Oct 10, 2022 at 22:29 comment added Alex Bogatskiy how was this answer accepted? The function f literally returns negative values for all x, so the BarLegend comes out all solid red, and even with a fixed f the ticks won't correspond to the correct colors returned by cf at all.
Mar 13, 2017 at 0:42 comment added an offer can't refuse @MichaelE2 Thanks, it works with your modifications.
Mar 13, 2017 at 0:40 vote accept an offer can't refuse
Mar 12, 2017 at 22:01 comment added Michael E2 @buzhidao This works in V10 & V9 for me. The automatic tick marks in V9 are a bit awkward, but BarLegend[{"SunsetColors", {0.3, 15}}, Ticks -> {0.3, 1, 3, 10, 15}, ScalingFunctions -> {Log, Exp}, LegendLayout -> "Row"] fixes that; and works in all versions V9-11.
Mar 4, 2017 at 0:56 comment added an offer can't refuse I have no ScalingFunctions, my version is 10.
Mar 3, 2017 at 21:54 history answered MinHsuan Peng CC BY-SA 3.0