The following code gives me a plot with significant margins above and below the figure. I don\'t know how to eliminate the noticeable margins. subplots_adjust does
subplots_adjust
You should use add_axes if you want exact control of the figure layout. eg.
add_axes
left = 0.05 bottom = 0.05 width = 0.9 height = 0.9 ax = fig.add_axes([left, bottom, width, height])