How to plot an horizontal line with Python in a Matplotlib or Seaborn chart?

In today’s quick Data visualization tutorial, we will show you how you can easily draw horizontal lines in Python plots that run in parallel to the X axis. We’ll use a bar plot as an example, but you can obviously apply the same logic for other charts such as scatter, histogram, lien plots etc’. Once …

Read moreHow to plot an horizontal line with Python in a Matplotlib or Seaborn chart?

Create a Seaborn countplot using Python: a step by step example

Today we would like to discuss the basics of Seaborn countplot creation and customization. We’ll be using our deliveries DataFrame as an example (you can grab the file Step 1: Import your data Step 2: Create a Seaborn Countplot chart We’ll start by rendering the countplot: Note: Use the figsize parameter to control the countplot …

Read moreCreate a Seaborn countplot using Python: a step by step example

How to customize Matplotlib plot titles fonts, color and position?

In today’s quick recipe, we’ll learn the basic of Matplotlib title customization. We’ll use bar plots, but the post is fully relevant for other Matplotlib charts: line, scatter, distribution and bar plots. Step 1: Prepare your data for visualization We’ll start by defining a simple dataset for this example. We got a Pandas Series that …

Read moreHow to customize Matplotlib plot titles fonts, color and position?

How to change Seaborn legends font size, location and color?

In this tutorial we’ll learn about how to set and change legends in Python Seaborn charts. We’ll be using our deliveries dataset. Consider the following script that renders a scatter plot from a Python DataFrame data. We’ll get the following chart: Hide the Seaborn legend If you might want to remove your legend altogether, you …

Read moreHow to change Seaborn legends font size, location and color?