Guided Project: Star Wars Survey & Question

https://app.dataquest.io/m/201/guided-project%3A-star-wars-survey/9/next-steps

Star_wars_survey.ipynb (141.0 KB)

Hi,

I just finished guided project of Star Wars Survey, and I’m eager to receive any comments for improvement.
I have a question and need your help below.
When I make a bar plot, I found there’s overlapping and I couldn’t fix it.
I try plt.tight_layout() but nothing changed.

Hope someone can help me about this, thank you!

Click here to view the jupyter notebook file in a new tab

hi @yida0127

I modified these code lines. try it at your end and let us know if this is not what you were looking for.

# find the most-viewed movie by education degree
fig = plt.figure(figsize = (10, 10)) # earlier it was (15, 12)
ax1 = fig.add_subplot(2,2,1) # earlier it was (1,2,1)
ax2 = fig.add_subplot(2,2,2) # earlier it was (1,2,2)
ax3 = ..... rest of the code is as-is no change

What exactly is this y=1 doing here?
ax3.set_title("Highest-ranked movie by college ot associated degree", y=1)