I have 3 functions like the following that allows to obtain each one a graph and I intend a function in which it uses the 3 graphs of the other functions to join in a single figure.
def funcao1(grafico):
...
pylab.plot(range(len(x)), y)
pylab.xticks(z,sorted(set(x)))
pylab.title("crimes")
pylab.xlabel("Anos")
pylab.ylabel("# Crimes")
pylab.show()
def funcao2(grafico):
...
pylab.plot(range(len(y)), x)
pylab.xticks(b,sorted(set(y)))
pylab.title("nomes")
pylab.xlabel("Anos")
pylab.ylabel("# Crimes")
pylab.show()
def funcao3(grafico):
...
pylab.plot(range(len(a)), e)
pylab.xticks(p,sorted(set(a)))
pylab.title("idades")
pylab.xlabel("Anos")
pylab.ylabel("# Crimes")
pylab.show()
def quatro_figuras(grafico):
#Aqui obter uma figura com os 3 graficos