1
To use Matplotlib, we have to import it and use the acronym plt to facilitate programming as follows:
import matplotlib.pyplot as plt
And every time we use this library, we need to reference the plt:
plt.plot(x,y, marker='o')
plt.title('Nota dos alunos')
plt.xlabel('provas')
plt.ylabel('notas')
plt.show()
I just don’t understand why when we use the SEED is not the same when we use the things in the library. Because following the logic of Matplotlib, when using the SEED should be:
random.seed(1)
When it really is:
seed(1)
Why don’t we call the library of Matplotlib to use the SEED as we usually do?
I don’t know how you can use Seed without calling through
random.seed(). Here the IDE (pycharm) warns to complete the instruction, as use onlyseed()it’s like you’re calling a locally created function– Evilmaax