Visualizing the Collatz Conjecture
Note: This Guided Project is part of our Data Visualization in Python course, and additionally made available as a standalone project. For the full experience, please enroll into the respective course.
Matplotlib is versatile - you can go with simple 2D plots or 3D plots and plot simple or complex relationships between data points with it. While it's not perfect for everything, it definitely is a Jack of All Trades. Seaborn is built on top of Matplotlib, makes the plotting process easier and cleaner, and produces nicer visuals.
It's worth noting that the "nicer visuals" are really, just built using Matplotlib's support for customized plot styles. You can define your own styles and use them instead of the default one, or pick from the many styles available in the library. The beauty of Seaborn's plots is just a Matplotlib style that makes them look more pleasing and well-polished. To this end - we'll be playing around with face colors, alpha values and line colors in the upcoming project to make visuals more appealing. We'll be offloading some of the more complex visualizations to Seaborn, since there's no need to create them by hand through the low-level API when an existing solution already exists.