Use the figure plot commands rather than the global pyplot interface.

Fixes some problems when several plots are open in the GUI.
Merge branch 'master' of github.com:tohojo/netperf-wrapper