Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I'm attempting to generate some histograms, and I'd like to automatically label the X-axis. However, Histogram[. . ., AxesLabel -> {"X", "Y"}] places the "X" label on the RHS of the axis. How do I direct that the "X" label should be positioned below the axis? I need some automated method (I can of course move it by hand), since I'm going to be generating hundreds of diagrams.

share|improve this question

1 Answer 1

up vote 5 down vote accepted

You can use Frame->True

Histogram[{1, 2, 3}, Frame -> True, FrameLabel -> {{"Y", None}, {"X", "my histogram"}}, 
  RotateLabel -> False]

Mathematica graphics

share|improve this answer
    
Sorry I neglected accepting your answer for so long - I was traveling and unable to access the net. –  Roger Harris Jan 8 '13 at 3:08

Your Answer

 
discard

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.