Skip to main content
Tweeted twitter.com/#!/StackMma/status/494511982595563520
Fixed formatting
Source Link
Öskå
  • 8.6k
  • 4
  • 33
  • 53

I am using the options PlotTheme -> "Scientific" and PlotLegends -> Placed[Automatic, Right] on a MatrixPlotMatrixPlot and I would like to change the font size of the legend labels.

I would usually do that by specifying BarLegend[{"LakeColors", {0, 1}}, LabelStyle -> {FontSize -> 20}] but

BarLegend[{"LakeColors", {0, 1}}, LabelStyle -> {FontSize -> 20}] 

1/ I don't know the color function used by the base theme "Scientific" and 2/ I would like to keep the range of min and max values {0,1} as Automaticbut

  • I don't know the color function used by the base theme "Scientific" and

  • I would like to keep the range of min and max values {0,1} as Automatic

What would be the best way to change the legend font in this case?

I am using the options PlotTheme -> "Scientific" and PlotLegends -> Placed[Automatic, Right] on a MatrixPlot and I would like to change the font size of the legend labels.

I would usually do that by specifying BarLegend[{"LakeColors", {0, 1}}, LabelStyle -> {FontSize -> 20}] but

1/ I don't know the color function used by the base theme "Scientific" and 2/ I would like to keep the range of min and max values {0,1} as Automatic

What would be the best way to change the legend font in this case?

I am using the options PlotTheme -> "Scientific" and PlotLegends -> Placed[Automatic, Right] on a MatrixPlot and I would like to change the font size of the legend labels.

I would usually do that by specifying

BarLegend[{"LakeColors", {0, 1}}, LabelStyle -> {FontSize -> 20}] 

but

  • I don't know the color function used by the base theme "Scientific" and

  • I would like to keep the range of min and max values {0,1} as Automatic

What would be the best way to change the legend font in this case?

Source Link
Sulli
  • 2.2k
  • 17
  • 33

Change the legend labels' font when PlotLegends is Automatic

I am using the options PlotTheme -> "Scientific" and PlotLegends -> Placed[Automatic, Right] on a MatrixPlot and I would like to change the font size of the legend labels.

I would usually do that by specifying BarLegend[{"LakeColors", {0, 1}}, LabelStyle -> {FontSize -> 20}] but

1/ I don't know the color function used by the base theme "Scientific" and 2/ I would like to keep the range of min and max values {0,1} as Automatic

What would be the best way to change the legend font in this case?