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.

Whenever I try to plot an inequality with "RegionPlot", all my plots come out in boxed frames. Is there a way to plot inequalities where I get my standard x and y axes crossing each other?

For example, I am trying to plot $$x^2 - y^2 \leq 1$$ and Mathematica gives me with RegionPlot

enter image description here

See how my x and y axes are stuck to the left of the box instead of having them cross at the origin? Anyway around this?

share|improve this question

1 Answer 1

up vote 7 down vote accepted

If you look at Options[RegionPlot], you'll find the following options (in red) that are set by default:

You need to change these appropriately to get the plot as you desire:

RegionPlot[x^2 - y^2 < 1, {x, -10, 10}, {y, -10, 10}, 
    Frame -> False, AxesOrigin -> {0, 0}, Axes -> True]

share|improve this answer
    
Wonderful! Thank you –  jip Oct 30 '12 at 5:56

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.