Posts by Guilherme • 13 points
3 posts
-
0
votes1
answer306
viewsQ: How to insert caption in a linear graph with 3 vectors on the Y-axis?
x=['Jan','Fev','Mar','Abr','Mai','Jun','Jul','Ago','Set','Out','Nov','Dez'] y=[] z=[] w=[] for i in range (0,12,1): soma=np.sum(mprod[:,i]) y.append(int(soma)) for j in…
-
0
votes1
answer2857
viewsQ: Calculate arithmetic mean of a vector
import numpy as np matriz = [] medias = [] alunos=1 while True: print("Informe o número do aluno ou um valor negativo para terminar:") valor=int(input('Digite o…
-
0
votes2
answers249
viewsQ: Python script does not generate chart as expected
My Python algorithm is running perfectly, I just can’t generate the graph! I couldn’t identify the error... What’s wrong? import matplotlib.pyplot as plt va=float(input('Digite o valor a ser…