How to change the color of the outer border?

I am creating a plot with .html format. The plot has a black background and I am wondering how to change the white border to black?

I notice that if I define the dimension of the plot (autoscale is set to FALSE), there are a lot of white space outside.

Thank you very much.