Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I want to label the $x$-axis of a ListLinePlot , how do I do that?

There are two types of label:

  • a units label which would go to the right of the axis,

and then potentially you could have an

  • axis label below it.

What would be the way to enter both types of text?

share|improve this question
ListLinePlot[RandomReal[1, 6], AxesLabel -> {"meter\ndistance", "y"}] ? – Szabolcs Jan 16 '14 at 17:09
up vote 4 down vote accepted

Labeled is quite short solution:

Labeled[ListLinePlot[RandomReal[1, 6], AxesLabel -> {"x", "y"}], 
        {"x label", "y label"}, 
        {Bottom, Left}, RotateLabel -> True]

enter image description here

share|improve this answer

Try this:

  Rotate[Style["Second label Y", 16, Bold], 90 Degree],
    ListLinePlot[RandomReal[1, 6], 
     AxesLabel -> {Style["x", 16, Italic], Style["y", 16, Italic]}, 
     ImageSize -> 350],
    Style["Second label X", 16, Bold]
    }, Alignment -> Center]

You should obtain something of this sort: enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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