What is the logic in using Matplotlib and Seed?

Asked

Viewed 24 times

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?

  • 1

    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 only seed() it’s like you’re calling a locally created function

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.