Added ability to resize the plot to a given size.

Pull request for resizing graph according to https://github.com/flot/flot/pull/1181