I am using Mathematica 11.1 and facing difficulty with
BarLegend. When I specify custom ticks using
"Ticks" and custom tick labels using
BarLegend is still sorting ticks in a strange way. I have, for example:
But the Bar Legend shows up with something like this instead:
I have no idea what could be causing this. There is another post that deals with this issue here Problem with custom ticks in BarLegend in Mathematica 11.1, however, even explicitly specifying the tick labels via
"TickLabels" isn't working.
Furthermore, both options
"TickLabels" show up in red highlights and are not being 'fully' recognised as options for
BarLegend. I know that these options do work for positive numbers but the moment my z range contains negative numbers the BarLegend gets mixed up. This happens even when I convert the tick labels to strings before passing them to BarLegend.
**The same thing happens even when I try to shift the tick range so that it contains only positive numbers.