Matplotlib Axis Label Font Size

Matplotlib Axis Label Font Size

When I first started building data visualizations in Python, I often found myself squinting at the screen. The default plots were great, but the axis labels were almost always too small to read once I put them into a presentation. It took me some time to realize that Matplotlib gives you total control over typography. … Read more >>

How to Turn Off Axis Labels in Matplotlib

Turn Off Axis Labels in Matplotlib

If you have ever created a plot in Matplotlib, you know it automatically adds those tiny numbers and labels to your axes. Usually, this is exactly what you want, but sometimes these labels just get in the way of a clean visual. I have found that when I’m creating a high-level dashboard or a heat … Read more >>

How to Change Matplotlib Tick Label Font Size

Change Matplotlib Tick Label Font Size

In my years of developing data visualizations with Python, I have realized that the default settings are rarely perfect. Often, the default tick labels are just too small to read on a high-resolution screen or a printed report. I have spent a lot of time tweaking plots for presentations, and I found that adjusting the … Read more >>

Matplotlib Multiple Circle Plots

Matplotlib Multiple Circle Plots

Creating multiple circles in Matplotlib is one of those tasks that sounds simple until you actually try to align them perfectly. I have spent years building dashboards and data visualizations in Python, and I can tell you that there are at least three ways to do this. Each has its own place depending on whether … Read more >>

How to Create Multiple Violin Plots in Matplotlib

Create Multiple Violin Plots in Matplotlib

When I first started visualizing complex datasets, I often relied on box plots to see the distribution of my data. However, I quickly realized that box plots can hide important details, like whether a distribution has multiple peaks. That is when I discovered violin plots in Matplotlib, which combine a box plot with a kernel … Read more >>

How to Plot Multiple Rectangles in Matplotlib

Plot Multiple Rectangles in Matplotlib

When I first started building custom data visualizations in Python, I often found myself needing to highlight specific regions on a chart. Whether it’s marking recession periods in economic data or outlining specific clusters in a scatter plot, knowing how to draw shapes is a fundamental skill. In this tutorial, I will show you exactly … Read more >>

How to Plot a Matplotlib Secondary Y-Axis with a Log Scale

Plot Matplotlib Secondary Y-Axis with Log Scale

Plotting data with vastly different scales on the same chart can be a real headache. I’ve often found myself staring at a flat line on a linear scale, simply because one dataset overshadowed the other. In this tutorial, I will show you how to implement a secondary Y-axis and apply a logarithmic scale. This is … Read more >>

Create Subplots with a Secondary Y-Axis in Matplotlib

Create Subplots with Secondary Y-Axis in Matplotlib

When I build dashboards for financial analysis, I often need to compare two different metrics that don’t share the same scale. For instance, you might want to visualize the S&P 500 index price alongside the daily trading volume. If you plot them on the same Y-axis, the volume (in millions) will completely flatten the index … Read more >>

How to Set Axis Lower Limit in Matplotlib

Set Axis Lower Limit in Matplotlib

In my years of developing data-driven applications in Python, I’ve found that Matplotlib’s default scaling is usually great, but it isn’t perfect. There are many times when the default view starts the axis at a value that hides the trend you are trying to highlight. I often find myself needing to force a plot to … Read more >>

51 Python Programs

51 PYTHON PROGRAMS PDF FREE

Download a FREE PDF (112 Pages) Containing 51 Useful Python Programs.

pyython developer roadmap

Aspiring to be a Python developer?

Download a FREE PDF on how to become a Python developer.

Let’s be friends

Be the first to know about sales and special discounts.