I try to squeeze as much customization into my plots as I can, but the Matplotlib rabbit hole goes deep. Buried in the documentation you’ll find bizarre relics seemingly from a different world. Need a discrete colorbar with variable-width log-scale
I want to follow up on a previous post that used text as a scatter marker. It employed the TextToPath method to (as you might guess) convert text to Path, which is a Matplotlib class similar to an SVG. This
I used to love playing with these things as a kid. If you aren’t familiar, Spirograph is basically an art kit that lets you draw cool spiral shapes. Below is a demonstration from one of their commercials. I had the
It’s difficult to overstate how the United States has aged in recent decades. We have fewer kids, longer lifespans, and better medical care than ever. Those things aren’t bad per se, but they do present challenges for a program like
Scottie Scheffler has been ranked #1 on the PGA Tour for over three years now. In 2025 he won six tournaments, including two major championships. At this point hardly anyone disputes that Scheffler is the best golfer in the world.
I’ve wanted to post a Matplotlib 3D visualization for a while, but sharing it on the web is difficult. It’s easy to save 2D plots and embed them on this page. For a 3D plot, it works better when you
The Lotka-Volterra equations are a pair of differential equations used to model population dynamics. They assume an idealized environment with two species—one predator and one prey—and describe how the two populations change over time. The equations were developed simultaneously by
I think everyone knows what an ellipse is. It’s an elongated, squished circle that looks kind of like an egg. In mathematical terms it’s considered a conic section. That means you can slice through a cone and trace an ellipse,
I’m probably two or three years late on this post. I’m not sure how many people still play Wordle with their morning coffee. At one point my streak was over 100 days, but in 2025 it’s only an occasional thing.
I’m most comfortable with Matplotlib. I think that’s obvious at this point. I’m also well aware that it has a (*ahem*) troubled reputation, despite its large footprint in the data world. Much of that reputation is deserved, of course. It’s