4

In

ListLinePlot[{RandomReal[4, 6], RandomReal[2, 8], RandomReal[10, 12]},
  AxesLabel -> {"\!\(\*SuperscriptBox[\(N\), \(b\)]\) de sièges", 
   "Sièges parSyndicat"}, PlotLabels -> {"FO", "SM", "SdM"}]

how can we guarantee that the Axes Label

{"\!\(\*SuperscriptBox[\(N\), \(b\)]\) de sièges",    "Sièges parSyndicat"}

is not cut like in this example:

Mathematica graphics

Mathematica graphics

rhermans
  • 36,518
  • 4
  • 57
  • 149
cyrille.piatecki
  • 4,582
  • 13
  • 26

1 Answers1

6

Using ImagePadding

ListLinePlot[
 {
  RandomReal[4, 6],
  RandomReal[2, 8],
  RandomReal[10, 12]
  }
 , ImagePadding -> Full
 , AxesLabel -> {"\!\(\*SuperscriptBox[\(N\), \(b\)]\) de sièges", "Sièges parSyndicat"}
 , PlotLabels -> {"FO", "SM", "SdM"}
 ]

Mathematica graphics

Using FrameLabel

ListLinePlot[
 {
  RandomReal[4, 6],
  RandomReal[2, 8],
  RandomReal[10, 12]
  }
 , Frame -> True
 , FrameLabel -> {"\!\(\*SuperscriptBox[\(N\), \(b\)]\) de sièges", "Sièges parSyndicat"}
 , PlotLabels -> {"FO", "SM", "SdM"}
 ]

enter image description here


You should also see the solutions to this other question (7453) . Have a look into the documentation of


All plots were created using Mathematica 11.1.1 On Windows 7.

rhermans
  • 36,518
  • 4
  • 57
  • 149
  • for me PlotLabels doesn't work. Did you load a Package to get the Labels? I'm only familiar with PlotLabel, which is doing something different. – RMMA Aug 23 '17 at 08:53
  • @RMMA PlotLabels was introduced in Mathematica v 10.4, which version do you have? I did NOT use any packages. – rhermans Aug 23 '17 at 08:55
  • ok. I'm using 10.3. PlotLabels seems to be useful. – RMMA Aug 23 '17 at 09:13