3
$\begingroup$

Could one modify the output of the following

  z1 = RegionPlot[ p > Sin[q], {p, 0, 2}, {q, 0, 2}, PlotStyle -> Brown,
    AxesLabel -> {"S", "T"}];
z2 = RegionPlot[ (p > Sin[q^2]), {p, 0, 2}, {q, 0, 2}, 
   PlotStyle -> Gray, AxesLabel -> {"S", "T"}];
Show[z2, z1 ]

to something like this:

enter image description here

with preferably arrow heads at the end of axes? The marks on horizontal and vertical axes are where I want to write $\beta$ and $\alpha$.

$\endgroup$
0

1 Answer 1

2
$\begingroup$

Edit

Clear[z1, z2];
z1 = RegionPlot[p > Sin[q], {p, 0, 2}, {q, 0, 2}, PlotStyle -> Brown, 
   AxesLabel -> {"S", "T"}, BoundaryStyle -> None];
z2 = RegionPlot[(p > Sin[q^2]), {p, 0, 2}, {q, 0, 2}, 
   PlotStyle -> Gray, AxesLabel -> {"S", "T"}, 
   Ticks -> {{{1.5, Style[α, 16]}}, {{1, Style[β, 16]}}},
    Frame -> False, Axes -> True, AxesStyle -> Arrowheads[{{0.05}}], 
   PlotRangePadding -> .2, BoundaryStyle -> None];
Show[z2, z1]

enter image description here

FrameTicks -> {{{{1.5, α}}, None}, {{{1, β}}, None}}
z1 = RegionPlot[p > Sin[q], {p, 0, 2}, {q, 0, 2}, PlotStyle -> Brown, 
   AxesLabel -> {"S", "T"}];
z2 = RegionPlot[(p > Sin[q^2]), {p, 0, 2}, {q, 0, 2}, 
   PlotStyle -> Gray, AxesLabel -> {"S", "T"}, 
   FrameTicks -> {{{{1.5, Style[α, 16]}}, 
      None}, {{{1, Style[β, 16]}}, None}}];
Show[z2, z1]

enter image description here

$\endgroup$
3
  • $\begingroup$ Thanks, @cvgmt. I was wondering if it is possible to have this plot without Frame, just two axes with arrow heads. $\endgroup$
    – Mike
    Jun 12, 2023 at 12:08
  • $\begingroup$ Thanks, @cvgmt. How to get ride of that bluish borderline ? $\endgroup$
    – Mike
    Jun 12, 2023 at 12:54
  • $\begingroup$ @Mike BoundaryStyle -> None. $\endgroup$
    – cvgmt
    Jun 12, 2023 at 12:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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