Mar-29-2023, 09:22 AM
(Feb-21-2023, 09:58 AM)abc123456 Wrote: What is the causing the differences, and how do I get the Jupyter graph to look like the one in Codecademy? Thank you!
Hi!
The last two graphics are identical, because both "x" axes go from 1998 to 2012. The same applies to both "y" axes, going from 3600000 (3.6 1e6) to 5000000 (5.0 1e6).
The first two graphics are, on the contrary, different. It seems that the span of values given for the axes are different.
While the "x" axis on the first graphic (Codecacademy) starts on roughly 1998, the "x" axis on the second graphic (Jupyter Notebook) starts on roughly 2012, which is precisely where the dots have stopped to appear on the first graphic. That is why the blue dots are not shown on the second graphic.
Similarly, where the dots have stopped to appear on the "y" axis on the first graphic (Codecacademy), it's precisely the upper limit of the span of the "y" axis on the second graphic (Jupyter Notebook). That is also why the blue dots are not shown on the second graphic.
I would check the span of values given to be represented on both axes on both graphics for the Codecacademy as well as for the Jupyter Notebook.
I hope it helps.
newbieAuggie2019
"That's been one of my mantras - focus and simplicity. Simple can be harder than complex: You have to work hard to get your thinking clean to make it simple. But it's worth it in the end because once you get there, you can move mountains."
Steve Jobs
"That's been one of my mantras - focus and simplicity. Simple can be harder than complex: You have to work hard to get your thinking clean to make it simple. But it's worth it in the end because once you get there, you can move mountains."
Steve Jobs