I want to use Overlay to combine two plots. I noticed, that Overlay adds space at top and bottom, which I do not want to have.
Example:
plot = ListPlot[{{0, -130}}, PlotStyle -> {Black, PointSize[1]}, AspectRatio -> 1, Axes ->None, Frame -> None, PlotRange -> {{-50, 50}, {-265, 5}}, ImageSize -> 200, ImagePadding -> 0]
This creates a black Point, which touches all 4 edges. Now I want to use Overlay and to simplify the problem, I will only use it to display the plot:
overlayplot = Overlay[{plot}]
Strangely, the overlayplot added vertical space. This even changed the aspect ratio of the image. What could be the reason for this behaviour?
Show
. If the latter, better to combine things usingGraphics
. $\endgroup$Overlay
is a very powerful tool but it requires more thought as you need to have all parts 'aligned' if that makes sense. If you could tell us in more detail what it is you want to achieve, that would be useful. $\endgroup$