Hot answers tagged

3

Use the (undocumented, afaik) options "TicksStyle" and "FrameStyle": BarLegend[{"SunsetColors", {0, 1}}, LabelStyle -> {FontSize -> 12}, "TicksStyle" -> Directive[Red, AbsoluteThickness[5]], "FrameStyle" -> Opacity[0]] In version 10, we need to add Opacity[1] in Directive[...]: BarLegend[{"SunsetColors", {0, 1}}, LabelStyle -> ...


3

Analysis (Observations in 10.1.0 under Windows.) Curiously it seems that AbsoluteThickness[0.2`] is hard-coded within the internal definitions. Formatting of BarLegend calls Charting`iBarLegend which calls Legending`LegendDump`iColorGradientLegend or Legending`LegendDump`iColorBandLegend. In the definition of iColorGradientLegend we find: ticksstyle = ...


3

If you use a number instead of Automatic for the AspectRatio option, it seems to work: ContourPlot[Sin[x y], {x, 0, 3 Pi}, {y, 0, Pi}, Contours -> 5, PlotLegends -> Placed[BarLegend[Automatic], Right], AspectRatio -> 1/2, ImageSize -> 200] Since AspectRatio->Automatic simply determines the ratio by the plot range, one can make an easy ...


1

The easiest workaround is to use Table[Labeled[ ListVectorPlot[data[[i]], PlotRange -> All, VectorColorFunction -> Function[{x, y, vx, vy, n}, ColorData["Rainbow"][Rescale[n, {min, max}]]], VectorColorFunctionScaling -> False, ImageSize -> 300], BarLegend[{"Rainbow", {min, max}}, ImageSize -> 300], {{Right, Center}} ...



Only top voted, non community-wiki answers of a minimum length are eligible