control the margins of a plot in a figure

I set my figure to a certain size and I want the plot to be scaled
into that figure canvas
Currently, that doesnt happen, there is a lot of whitespace at the margins
how do I control that whitespace?