Investigating-Netflix-Movies-and-Guest-Stars-in-The-Office icon indicating copy to clipboard operation
Investigating-Netflix-Movies-and-Guest-Stars-in-The-Office copied to clipboard

Correction on 9.Plotting with Colors

Open SahanDisa opened this issue 2 years ago • 0 comments

Mentioned code segment in 9. Plotting with colors should be corrected as follows with the relevant x & y labels ` Set the figure style and initalize a new figure plt.style.use('fivethirtyeight') fig = plt.figure(figsize=(12,8))

Create a scatter plot of duration versus release_year plt.scatter(netflix_movies_col_subset["release_year"], netflix_movies_col_subset["duration"], c = colors)

Create a title and axis labels plt.title("Movie duration by year of release") plt.xlabel("Release year") plt.ylabel("Duration (min)")

Show the plot plt.show() `

SahanDisa avatar Dec 24 '22 04:12 SahanDisa