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 simply want to add labels to the axes without using the Drawing Tools menu, I tried this without success:

RegionPlot[x^2 + y < 3, {x, 0, 3}, {y, 1, 3}, AxesLabel -> Automatic]

This does not work either:

RegionPlot[x^2 + y < 3, {x, 0, 3}, {y, 1, 3}, AxesLabel -> {x, y}]

Is there any convenient way of labelling axes in a region plot? Thanks for your help!

share|improve this question
1  
Try FrameLabel. –  b.gatessucks Dec 21 '12 at 11:14
    
Thanks, this command is great! –  Apatura Dec 21 '12 at 11:37
add comment

2 Answers

Just for completeness, one can also interpret this question as meaning that you want to display axes and label them, instead of displaying a frame and labeling that.

In that case, the answer would be

RegionPlot[x^2 + y < 3, {x, 0, 3}, {y, 1, 3}, AxesLabel -> Automatic, 
 Axes -> True, Frame -> None]

RegionPlot with axes

share|improve this answer
    
That explains it - FrameLabel works for Frame, AxesLabel for Axes, and the two are completely different things. Thanks for your answer! –  Apatura Dec 22 '12 at 14:29
add comment
up vote 4 down vote accepted

Using FrameLabel instead of AxesLabel I get exactly what I want, at least if I disable the automatic rotation and enlarge the font size:

RegionPlot[x^2 + y < 3, {x, 0, 3}, {y, 1, 3}, FrameLabel -> {x, y}, RotateLabel -> False,LabelStyle -> (FontSize -> 20)]

regionplot

share|improve this answer
add comment

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.