I have just finished learning Python Matplotlib and Python Seaborn in Data Science Path. To be honest, there is so much (maybe even too much) information I had to absorb and now, I am trying to take a step back for a bit to reflect and gather my thoughts.
In the process of doing so, I have some general questions (not linked to a specific exercise) that I need a Python Expert to help me demystify them:
Throughout the learning, I noticed that we rarely create a variable and assign it to commands like
plt.plot()and many more. Even in the Matplotlib and Seaborn cheatsheets, I don’t see a variable created before plotting a graph. Why is that?
How is it different than
plt.subplot()which we can assign to an ax object like this
ax = plt.subplot()?
Even if we can create a variable and assign it to these lines of commands, how does it work? Can you please provide a simple example.
In real-work situation, I am sure we use the combination of Matplotlib and Seaborn modules to create data visualisation. Now, is there an order of codes that we have to follow when we start plotting a graph using these two modules?
For example, can we write
sns.barplot()etc ? Or does the
plt.figure()always go first before
Throughout the learning and exercises, I did try to experiment on this aspect but didn’t find many errors.
In a real-work situation, does it make you a bad Python Programmer if you keep referring to your notes and Python Documentation for Python Syntax if you forgot them? No matter how much I understand and practice, I don’t think Python codes will be able to stick in my memory.
I think those three questions are my concerns at the moment.
I would appreciate the inputs that I can get.
Please avoid putting any unnecessary comments.
Thanks and happy learning,