matplotlib

Travis-CI:

This Page

matplotlib.axis.XAxis.set_margins

XAxis.set_margins(margins)

Set the dictionary describing whether a margin should be applied on each of the sides (top, bottom, left and right). Missing keys are assumed to be True. If True or False are passed in, all sides are set to that value.