-2

Please tell me how to label curves like this: enter image description here

HANG YU
  • 87
  • 2

1 Answers1

4

It starts with a curve by ParametricPlot, a RegionPlot and a Graphics list of objects bound together in a Show statemenent, e.g.

Show[{ParametricPlot[{t^2, 1/2 t + 1/4 t^4 Boole[t < 0]}, {t, -1, 1}],
   RegionPlot[   y > 0 && y > Sqrt[x/4] || x < 0 && y > 0, {x, -1, 1},
    {y, -1, 1}, PlotStyle -> {HatchFilling[]}],
     Graphics[{{Thickness[0.01], Line[{{-1, 0}, {0, 0}}]}, 
        {Thickness[0.01],Line[{{0, -1}, {0, 0}}]},
        {Style[Text["no effect", {-1/2, 1/2}], Bold, 16, Background ->
           White]},
         {Arrow[{{-1, -1}, {1, -1}}], 
           Style[Text["B", {1.1, -1}], Bold, 16],
         {Arrow[{{-1, -1}, {-1, 1}}], 
           Style[Text["K", {-1, 1.1}], Bold, 16]}}}],
         {Circle[{1/2, 1/3}, 0.06], Text["4", {1/2, 1/3}]} },
 PlotRange -> All, AxesOrigin -> {-1.2, -1.2},
    Ticks -> {{{-1, "S"/2}, {0, "S"}, {1/2, 8/5 "S"}}, {{-1, "S"}, {0, 
 "S/2"}, {1/2, "S"}}}]

Diagram labelling

Roland F
  • 3,534
  • 1
  • 2
  • 10