Regression line "lw" mystery
What is lw = 4 for the scatter plot
Thank you for your question!
In the lesson, the
lw argument is used in the line plot to control the width of the line. You can, in fact, substitute
linewidth to enhance readability :)
As you have mentioned, there is a
linewidths (note the 's' in the end) parameter in matplotlib's scatter function as well - this one is not shown in the lesson. This parameter is used to control the width of the marker edges.
Hope this helps!