4
$\begingroup$

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

$\endgroup$

1 Answer 1

6
$\begingroup$

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.

$\endgroup$
3
  • $\begingroup$ 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. $\endgroup$
    – RMMA
    Aug 23, 2017 at 8:53
  • $\begingroup$ @RMMA PlotLabels was introduced in Mathematica v 10.4, which version do you have? I did NOT use any packages. $\endgroup$
    – rhermans
    Aug 23, 2017 at 8:55
  • $\begingroup$ ok. I'm using 10.3. PlotLabels seems to be useful. $\endgroup$
    – RMMA
    Aug 23, 2017 at 9:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.