# Log Scale in region plot

How to make both x- and y-axes in log scale for the RegionPlot written below?

RegionPlot[-0.02 < z < 0.0002, {x, -0.00005, 1}, {y, -0.00005, 5}]


First, note that the predicate (i.e. the first argument) in your RegionPlot does not actually depend on the variables you're trying to plot over.

To answer your question about log-axes however, you can use ScalingFunctions. To demonstrate, I'll use a predicate example from the documentation:

(Edit 01: Using "SignedLog" instead based on @Bob Hanlon's comment below)

RegionPlot[x^2 + y^3 < 2, {x, -2, 2}, {y, -2, 2},
ScalingFunctions -> {"SignedLog", "SignedLog"}]


Edit 02: "SignedLog" appears to have been introduced to ScalingFunctions recently. You can however define custom ScalingFunctions, e.g. from this answer:

symlog = {
Function[x, Sign[x] * Log[Abs[x] + 1]],
Function[y, Sign[y] * (Exp[Abs[y]] - 1)]};
}

RegionPlot[x^2 + y^3 < 2, {x, -2, 2}, {y, -2, 2},
ScalingFunctions -> {symlog, symlog}


• Or since your variables can be negative, "SignedLog", e.g., RegionPlot[x^2 + y^3 < 2, {x, -2, 2}, {y, -2, 2}, ScalingFunctions -> {"SignedLog", "SignedLog"}] Apr 15, 2022 at 13:32
• Thanks, @BobHanlon for your answer. However, when I try to implement your suggestion in Mathematica, it is not working. "ScalingFunctions -> {"SignedLog", "SignedLog"}" --- this part is coming out in red color and error is "The function value {SignedLog[{1.}]} is not a list of real numbers \ with dimensions {1} when the arguments are {{1}}". Apr 15, 2022 at 17:38
• @SahabubJahedi - ScalingFunctions was updated in 2021 (v13.0) Apr 15, 2022 at 17:54
• @BobHanlon, I see. I am using v12.0. Is there any different way to do this in v12.0? Apr 15, 2022 at 17:57
• @SahabubJahedi: I believe this post answers your question for pre v13.0 "SignedLog" functionality. See updated answer Apr 15, 2022 at 19:50