I need to mark four points in a single graph, math does it separately, but when I put together both graphs, two points of a line disappear, I really do not know why.
(* first graph *)
w1 = ListLinePlot[ {{0, 88}, {24.2, 0}},
Epilog -> {Red, PointSize@Large,Point[{{0, 88}, {24.2, 0}}]},
Frame -> True,
FrameTicksStyle -> Black,
GridLines -> Automatic
]
(* second graph *)
w2 = ListLinePlot[ {{0, 25.3}, {88, 0}},
Epilog -> {Red, PointSize@Large,Point[{{0, 25.3}, {88, 0}}]},
Frame -> True,
FrameTicksStyle -> Black,
GridLines -> Automatic
]
(* combined graphs *)
Show[w1, w2, PlotRange -> All]
Any suggestion? plz :)
Show
inherits theEpilog
from the first plot (w1
). Move theEpilog
to theShow
:Show[w1, w2, PlotRange -> All, Epilog -> {Red, PointSize@Large, Point[{{0, 88}, {24.2, 0}, {0, 25.3}, {88, 0}}]}]
$\endgroup$Show[combineShow[w1, w2], PlotRange -> All]
seems to do the job, no?: i.stack.imgur.com/BBvpw.png -- Mr.Wizard wrotecombineShow
specifically to address the problem of combining theEpilog
andProlog
settings of graphics (but made it more general than that). $\endgroup$Mesh
andMeshstyle
works without all of that. $\endgroup$Epilog
that the OP seems interested in. My way for dealing with this has been to skipEpilog
and put it all inGraphics
, which seems both simple and obvious:Show[w1, w2, Graphics[{Red, PointSize@Large, Point[{{0, 88}, {24.2, 0}, {0, 25.3}, {88, 0}}]}]]
$\endgroup$