svg/charts/graph.py
def calculate_left_margin(self):
		"""
		Calculates the margin to the left of the plot area, setting
		border_left.
		"""
		bl = 7
		# Check for Y labels
		if self.rotate_y_labels:
			max_y_label_height_px = self.y_label_font_size
		else:
			label_lengths = map(len, self.get_y_labels())
			max_y_label_len = max(label_lengths)
			max_y_label_height_px = 0.6 * max_y_label_len * self.y_label_font_size
		if self.show_y_labels:
			bl += max_y_label_height_px
		if self.stagger_y_labels:
			bl += max_y_label_height_px + 10
		if self.show_y_title:
			bl += self.y_title_font_size + 5
		self.border_left = bl
def calculate_left_margin(self):
		"""
		Calculates the margin to the left of the plot area, setting
		border_left.
		"""
		bl = 7
		# Check for Y labels
		if self.rotate_y_labels:
			max_y_label_height_px = self.y_label_font_size
		else:
			label_lengths = map(len, self.get_y_labels())
			max_y_label_len = max(label_lengths)
			max_y_label_height_px = 0.6 * max_y_label_len * self.y_label_font_size
		if self.show_y_labels:
			bl += max_y_label_height_px
		if self.stagger_y_labels:
			bl += max_y_label_height_px + 10
		if self.show_y_title:
			bl += self.y_title_font_size + 5
		self.border_left = bl
Calculates the margin to the left of the plot area, setting
		border_left.