The graph in that example has larger margins because it has x- and y-axis names. The axis names force the graph to make the margins larger. The trick in this case is to make the names consist of a single blank character, in order to fool the graph into making space for the names without actually showing them.
Luis Gomes
NI