• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Data Viz with Python and R

Learn to Make Plots in Python and R

  • Home
  • Seaborn
  • Matplotlib
  • ggplot2
  • Altair
  • About
    • Privacy Policy
  • Visualizing Activation Functions in Neural Networks
  • Confusion Matrix Calculator
  • Visualizing Dropout Rate in Neural Network
  • Visualizing Loss Functions in Neural Networks
  • Show Search
Hide Search

Matplotlib

How to Combine Two Seaborn plots with Shared y-axis

datavizpyr · March 21, 2021 ·

Combine Two plots into one in Seaborn

In this tutorial, we will see how to join or combine two plots with shared y-axis. As an example, we will make a scatterplot and join with with marginal density plot of the y-axis variable matching the variable colors. Thanks to Seaborn's creator Michael Waskom's wonderful tip on … [Read more...] about How to Combine Two Seaborn plots with Shared y-axis

Filed Under: Matplotlib, Python, Seaborn Tagged With: Matplotlib, Python, Seaborn

Matplotlib Draw Rectangle: Add, Fill, Annotate & Highlight Regions (Step-by-Step)

datavizpyr · January 30, 2021 ·

Multiple rectangles on the same Matplotlib plot

Need to highlight regions, create annotations, or add geometric shapes to your plots? This guide shows exactly how to draw rectangles in Matplotlib using patches.Rectangle—from crisp outlines to transparent overlays, labels, multiple boxes, subplots, and more. Copy-paste the code … [Read more...] about Matplotlib Draw Rectangle: Add, Fill, Annotate & Highlight Regions (Step-by-Step)

Filed Under: Matplotlib, Python Tagged With: add rectangle with matplotlib

How To Color Scatterplot by a variable in Matplotlib?

datavizpyr · December 18, 2020 ·

Coloring Scatterplot with Variable using Matplotlib

Scatterplots between two numerical variables are great to see the relationship between them. Adding colors to the data points based on the third categorical variable is often useful in understanding the relationship among the three variables. In this post, we will learn how to … [Read more...] about How To Color Scatterplot by a variable in Matplotlib?

Filed Under: Color Scatterplot Matplotlib, Python, Scatterplot Matplotlib Tagged With: Matplotlib, Python

How To Adjust Positions of Axis Labels in Matplotlib?

datavizpyr · September 22, 2020 ·

How To Adjust Axes Label Position in Matplotlib?

In this post, we will learn how to adjust positions of x-axis and y-axis labels in Matplotlib in Python. By default, plots with matplotlib places the axis labels in the middle. With matplotlib version 3.3.0, the matplotlib functions set_xlabel and set_ylabel have a new parameter … [Read more...] about How To Adjust Positions of Axis Labels in Matplotlib?

Filed Under: Matplotlib, Matplotlib set_xlabel, Python Tagged With: Matplotlib, Python

How to Show and Customize Mean Values in Seaborn Boxplots

datavizpyr · June 12, 2020 ·

Customize Mean Mark Boxplot: Seaborn & Matplotlib

Want to display both median and mean values in your boxplot visualizations? This comprehensive guide shows you exactly how to seaborn boxplot show mean using multiple methods, with ready-to-use Python code examples. Boxplots traditionally show median values, but displaying the … [Read more...] about How to Show and Customize Mean Values in Seaborn Boxplots

Filed Under: Matplotlib, meanprops Matplotlib, Python, Seaborn, show mean in boxplot Tagged With: Boxplot, Matplotlib, Python, Seaborn

  • « Go to Previous Page
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • Go to Next Page »

Primary Sidebar

Python & R Viz Hubs

  • Seaborn Guide & Cookbook
  • ggplot2 Guide & Cookbook
  • Matplotlib Guide & Cookbook
  • Confusion Matrix Calculator
  • Visualizing Activation Functions
  • Visualizing Dropout
  • Visualizing Loss Functions

Buy Me a Coffee

Copyright © 2026 · Daily Dish Pro on Genesis Framework · WordPress · Log in

Go to mobile version