set upper and lower margins to 5%.
http://www.silx.org/doc/silx/latest/modules/gui/plot/plotwidget.html?highlight=setdatamargins#silx.gui.plot.PlotWidget.PlotWidget.setDataMargins