I need to add two points on a Plot. As they're on the axes, and PlotRange->{{0,27},{0,27}}
only half the points are shown. I don't want to increase the PlotRange
to include negative values, and I'd rather not have the axes extending below (0,0)
.
Is there any other option? My code is the following:
Edited full code
Plot[
{Piecewise[{
{(5 - .5*q^(1/2))^2, q <= 100/9},
{(10 - 2*q^(1/2))^2, 100/9 < q < 25}}],
Piecewise[{
{(10 - 2*q^(1/2))^2, q <= 100/9},
{(5 - .5*q^(1/2))^2, 100/9 < q < 30}}],
25 - q}, {q, 0, 30},
PlotRange -> {{0, 27}, {0, 27}},
PlotRangePadding -> .5,
AspectRatio -> 1,
Exclusions -> None,
PlotStyle -> {Black, Directive[Black, Dashed],
Directive[Black, Thickness[.005]]},
Filling -> {1 -> Axis},
BaseStyle -> {FontFamily -> "Times New Roman", 12},
AxesStyle -> Directive[Black, Thick],
Ticks -> None,
AxesLabel -> {HoldForm[Subscript[q, HoldForm[A]]],
HoldForm[Subscript[q, HoldForm[B]]]},
Epilog -> {
Text[HoldForm[L] == 50, {8, 25}],
Text[HoldForm[K] == 50, {22, 8}],
Text[HoldForm[q] == 25, {5, 22}],
Text[HoldForm[R], {25, 1}],
Text[HoldForm[S], {1, 25}],
PointSize -> .025,
Point[{{25, 0}, {0, 25}}]
} ]
PlotRangePadding -> 0.5
$\endgroup$PlotRangePadding
the axes go below 0. In this sense, it's equivalent to increase thePlotRange
. Isn't it possible to have the axes to start at(0,0)
and the points to show entirely? $\endgroup$