Last answered:

18 May 2022

Posted on:

17 May 2022

0

Regression line "lw" mystery

What is lw = 4 for the scatter plot

1 answers ( 0 marked as helpful)
Instructor
Posted on:

18 May 2022

2

Hey Emmanuel,

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 lw with 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!

Kind regards,
365 Hristina

Submit an answer