Programación en Pythonxy
Importar matplotlib.pyplot como plt
Importar propiedades de fuente desde matplotlib.font_manager
Importar aleatoriamente
Importar numpy como np
Importar matriz
xlist=[]
ylist=[]
xylist = []
a = [[np.random.randint (1 , 3)] Para j en el rango (1, 101)
Imprimir (una copia)
Para x, y en a:
xlist.append (x)
ylist.append(y)
plt.scatter(xlist, ylist)
fuente = propiedades de fuente(fname = r " c:\ windows\fonts\simsun.TTC", tamaño=15)
Plt.xlabel('eje x', fontproperties = fuente)
Plt.ylabel('eje y ' , fontproperties = fuente)
plt.show()