Center Axis in Plot

Does anyone know how to center the axis window when using Plots.jl and the default backend (GR?)

I have been working though all of the attributes and I cannot get it to have equal margins on both sides. I have set margins=0mm, as well as formatter=:none and tick_direction=:none. Please see the image below as an example.

BTW there is a bug (or maybe not) where if showaxis=false the space for the axis labels is still reserved. This requires formatter=:none to remove.


EDIT: Changed figure to a snip so you can clearly see the edges of the image.

Is the following all right?

How did you do this? Increase the margin value?

It is alright, but I would prefer to have very small boarder. Something like the right had side of the image I uploaded.

Ok, I thought you wanted all 4 margins to be the same size, if it is only 3, then it is easier.

This code:

using Measures, Plots
gr(dpi=600)
plot(sin, ticks=false, framestyle=:box, margins=0mm, title="This is a title")
savefig("test2_margins.png")

produces this figure:

This is what I was missing! Thanks