svg/charts/graph.py
def calculate_right_margin(self):
		"""
		Calculate the margin in pixels to the right of the plot area,
		setting border_right.
		"""
		br = 7
		if self.key and self.key_position == 'right':
			max_key_len = max(map(len, self.keys()))
			br += max_key_len * self.key_font_size * 0.6
			br += self.KEY_BOX_SIZE
			br += 10		# Some padding around the box
		self.border_right = br
def calculate_right_margin(self):
		br = 7
		if self.key and self.key_position == 'right':
			max_key_len = max(map(len, self.keys()))
			br += max_key_len * self.key_font_size * 0.6
			br += self.KEY_BOX_SIZE
			br += 10		# Some padding around the box
		self.border_right = br
def calculate_right_margin ( self ) : br = 7 if self . key and self . key_position == 'right' : max_key_len = max ( map ( len , self . keys ( ) ) ) br += max_key_len * self . key_font_size * 0.6 br += self . KEY_BOX_SIZE br += 10 # Some padding around the box self . border_right = br
Calculate the margin in pixels to the right of the plot area,
		setting border_right.
Calculate the margin in pixels to the right of the plot area setting border_right .