when using large markers, the edge of the marker is outside of the x / y lims.
e.g:
scatter([1,2,1,2],[1,1,2,2].*0.5;
markersize=60, marker='◯',
figure=(;size=(200,200)))
Should the auto x/y lims take into account the markersize/shape?
Is there an easy way to extend the lims in a smart way?
jules
July 3, 2024, 1:11pm
2
You can compute how far you’d have to extend the limits so that the markers would stay away from the edges far enough not to clip. But if they’re too large there will be no solution, or you’ll have to make the limits really huge which is kind of bad for readability
How does the markersize map to the x and y units?
For my case, i realized it was easier to use arc
since i could know exactly the extent.
jules
July 4, 2024, 10:33am
4
If you want markers in data space size you can also do that with scatter
Create impressive data visualizations with Makie, the plotting ecosystem for the Julia language. Build aesthetic plots with beautiful customizable themes, control every last detail of publication quality vector graphics, assemble complex layouts and...
Otherwise, you have to relate the axis size to its limits to know how much screen space maps to how much data space