Skip to content

Conversation

@pancakereport
Copy link
Contributor

Closes #165

I understand if we don't want to merge this because it definitely goes beyond the simplicity in Data 8.

From what I looked into, Year is already definitely full of integers. When I cast it to integers, the plot doesn't change at all. What's happening is a result of how matplotlib decides to show the plot. We can edit the datascience package if you'd like (something like "if x or y values are integers, then insert my fix here). Or we can just leave it as is.

]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"century_21.plot('Year', 'Number of Movies')"
"century_21.plot('Year2', 'Number of Movies')\n",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessing Year2 is a typo and it should be Year?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@davidwagner
Copy link
Member

Thanks so much for finding a solution! I left one comment, otherwise it looks good to me.

@pancakereport pancakereport merged commit a5cbac4 into main Jan 13, 2026
1 check failed
@pancakereport pancakereport deleted the 7-vis-fixes branch January 13, 2026 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ugly x-axis labels in Chapter 7

3 participants