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.
$\begingroup$
$\endgroup$
1
-
1$\begingroup$ Related question: mathematica.stackexchange.com/questions/17902/… $\endgroup$– KarolisCommented Apr 26, 2017 at 16:30
Add a comment
|
2 Answers
$\begingroup$
$\endgroup$
1
You can use Frame->True
Histogram[{1, 2, 3}, Frame -> True, FrameLabel -> {{"Y", None}, {"X", "my histogram"}},
RotateLabel -> False]
-
$\begingroup$ I wish there was a way of doing it without the frame $\endgroup$– KarolisCommented Apr 26, 2017 at 16:28
$\begingroup$
$\endgroup$
I wish there was a way of doing it without the frame - Karolis
Labeled[Histogram[{1, 2, 3}], {"X", "Y"}, {Bottom, Left}]