2
$\begingroup$

Im trying to add some points to a ListPlot using Prolog. However, the point generated by Prolog is bigger than the Plotmarkers. How can I make them exactly the same size?

ListPlot[Table[{x, x}, {x, 1, 5, 0.1}], 
 Prolog -> {{PointSize[0.03], Point[{4, 5}]}}, 
 PlotMarkers -> {{Graphics[{Disk[]}], 0.03}}]

enter image description here

$\endgroup$

1 Answer 1

3
$\begingroup$

Generate the graphics primitives for Prolog using ListPlot with same plot markers:

marker = {{Graphics[{Disk[]}], 0.03}};

ListPlot[Table[{x, x}, {x, 1, 5, 0.1}], 
 Prolog -> {First @ ListPlot[{{4, 5}}, PlotStyle -> Black, PlotMarkers -> marker]}, 
 PlotMarkers -> marker]

enter image description here

$\endgroup$

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.