I've got this picture:
The image has a resolution of 2001x2001. The left most pixel has an x-value of -2, and the right most pixel has an x-value of 2. Same goes for the y-values. Now I am trying to load this image into Mathematica and get it on the right scale inside a graphics environment. I've tried using inset like this:
julia = Import["https://i.stack.imgur.com/NLMXG.png"];
Graphics[{Blue, Rectangle[{-2, -2}, {2, 2}],
Inset[julia, Center, Center, 4]}, PlotRange -> {{-3, 3}, {-3, 3}},
Axes -> True, AxesStyle -> Orange]
This still gives a little blue border around some sides, giving me the impression that it is not centered properly. Is there a better way to do this?
Julia
tojulia
. It's a good habit to avoid starting variable names with capital letters :) $\endgroup$