# -*- coding: utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
#折线图,figure_no表示显示图的顺序
def simple_line_plot(x,y,figure_no):
plt.figure(figure_no)
plt.plot(x,y)
plt.xlabel('x values')
plt.ylabel('y values')
plt.title('Simple Line')
plt.xlabel('x values')
plt.ylabel('y values')
plt.title('Simple Dots')
plt.figure(figure_no)
plt.scatter(x,y)
plt.xlabel('x values')
plt.ylabel('y values')
plt.title('Simple scatter')
import numpy as np
import matplotlib.pyplot as plt
#折线图,figure_no表示显示图的顺序
def simple_line_plot(x,y,figure_no):
plt.figure(figure_no)
plt.plot(x,y)
plt.xlabel('x values')
plt.ylabel('y values')
plt.title('Simple Line')
def simple_dots(x,y,figure_no):
plt.figure(figure_no)
#设置线的形状为+,颜色为b蓝色
plt.plot(x,y,'+b')plt.xlabel('x values')
plt.ylabel('y values')
plt.title('Simple Dots')
#散点图
def simple_scatter(x,y,figure_no):plt.figure(figure_no)
plt.scatter(x,y)
plt.xlabel('x values')
plt.ylabel('y values')
plt.title('Simple scatter')
def scatter_with_color(x,y,l