Suppose that a is a line plot produced with Plot, and b and c are scatterplots produced with ListPlot.

Furthermore, suppose that Show[a, b, c] produces this:

Mathematica graphics

How can I modify the expression Show[a, b, c] so that the directive PointSize[Tiny] is applied to the points coming from b and c?


1 Answer 1


Maybe this /. PointSize[x_] -> PointSize[.02]

dat1 = Transpose[Sort /@ RandomReal[1, {2, 50}]];
dat2 = Transpose[Sort /@ RandomReal[1, {2, 50}]];

  Plot[x, {x, 0, 1}, PlotStyle -> 2],
  ListPlot[dat1, PlotStyle -> 1],
  ListPlot[dat2, PlotStyle -> 2]] /. PointSize[x_] -> PointSize[.02]

enter image description here

  • $\begingroup$ What about the thickness of line in show? Thanks! $\endgroup$
    – so_sure
    Commented Oct 7, 2022 at 10:32

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.