Exemplo n.º 1
0
			x_values = [ getX(t) for t in range(int(t_min/t_size),int(t_max/t_size)) ]
			y_values = [ getY(t) for t in range(int(t_min/t_size),int(t_max/t_size)) ]
			x_max = max(x_max, max(x_values))
			x_min = min(x_min, min(x_values))
			y_max = max(y_max, max(y_values))
			y_min = min(y_min, min(y_values))
		x_max = int(x_max + 1) + 1
		x_min = int(x_min - 1) - 1
		y_max = int(y_max + 1) + 1
		y_min = int(y_min - 1) - 1
		
	plot = Plot(x_min, x_max, x_size, y_min, y_max, y_size, t_min, t_max, t_size)
		
	#Plot axes
	if plot_axes: plot.plot_axes

	#Fix descrepancies betwen functions and colors	
	if len(functions) < len(colors):
		colors = colors[:len(functions)]
	
	if len(functions) > len(colors):
		colors += [default] * (len(functions)-len(colors))
	
	#Plot functions
	for (function, color) in zip(functions,colors):
		if polar:
			plot.plot_polar(function, color)
		else:
			plot.plot_function(function, color)
	plot.print_plot()