whole_func_string: function() {
  			var self = this;
  			var idx = self.capture_idx;
        self.w = (
          (idx.end - idx.start) / 1000 * self.pix_per_sec) + 
          margin[1] + margin[3];
        self.h = margin[0] + margin[2];
        for (var s in idx.servers) {
          self.h += (self.server_pad * 2);
          self.h += ((idx.servers[s][1].length) * self.conn_pad);
        }
  			console.log("resizing to " + self.w + " x " + self.h);
  			paper.setSize(self.w, self.h);
  			labels.setSize(self.label_w, self.h);
  		}
func_code_string: function() {
  			var self = this;
  			var idx = self.capture_idx;
        self.w = (
          (idx.end - idx.start) / 1000 * self.pix_per_sec) + 
          margin[1] + margin[3];
        self.h = margin[0] + margin[2];
        for (var s in idx.servers) {
          self.h += (self.server_pad * 2);
          self.h += ((idx.servers[s][1].length) * self.conn_pad);
        }
  			console.log("resizing to " + self.w + " x " + self.h);
  			paper.setSize(self.w, self.h);
  			labels.setSize(self.label_w, self.h);
  		}
func_documentation_string: change the paper and label sizes to suit the capture