2
$\begingroup$

When I use the AspectRatio option for RegionPlot, the padding on the left and right is wider than it is at the top and bottom. Is there a way to equalize this space on all sides of the plot?

RegionPlot[Abs[x] < 1 && Abs[y] < 1, {x, -1, 1}, {y, -1, 1}, AspectRatio -> 0.5]

enter image description here

$\endgroup$
1
  • $\begingroup$ You could set PlotRangePadding->None to get no padding on either side. $\endgroup$ Sep 23 at 9:32

1 Answer 1

3
$\begingroup$
RegionPlot[Abs[x] < 1 && Abs[y] < 1, {x, -1, 1}, {y, -1, 1}, 
 AspectRatio -> 1/2, PlotRangePadding -> {1, 2}/20]

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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