Skip to Content

Save Matplotlib Plot with Transparent Background

The default background for matplotlib plots is white, you can change the background colors of the plot, and you can also save your plots with a transparent background. In this tutorial, we’ll look at how to save a matplotlib figure as a PNG image with a transparent background. Export matplotlib image with a transparent background …

Read More about Save Matplotlib Plot with Transparent Background

Change Font Type in Matplotlib plots

In this tutorial, we’ll look at how to change the font types of texts in matplotlib plots. How to change Font in Matplotlib? You can change the font globally for all the plots using rcParams. (See the syntax and examples below). You can also set the font individually for text components of a matplotlib axes …

Read More about Change Font Type in Matplotlib plots

Change Background Color of Plot in Matplotlib

In this tutorial, we’ll look at how to change the background color of plots in matplotlib. Note that, the background color here means the background color of the region bounded by the axes. Also referred to as the axes face color. How to change background color in matplotlib? To change the background color of matplotlib …

Read More about Change Background Color of Plot in Matplotlib

Change Font Size of elements in a Matplotlib plot

In this tutorial we’ll look at how to change the font size of text elements in a matplotlib plot. How to change the font size in matplotlib? You can change the global font size in matplotlib using rcparams. You can also change the font size of individual components such as tick labels, axes labels, axes …

Read More about Change Font Size of elements in a Matplotlib plot

Plot a Bar Chart using Matplotlib

A bar chart is used to display categorical data using rectangular bars with lengths/heights proportional to the values they represent. In this tutorial, we’ll look at how to plot a bar chart in python with matplotlib through some examples. How to plot a bar chart in python? Matplotlib is a visualization library in python offering …

Read More about Plot a Bar Chart using Matplotlib

Plot a Pie Chart with Matplotlib

Pie charts are great for visualizing the distribution of counts among different values of a categorical field. For example, the distribution of T-shirts sold based on size (small, medium, large, etc). In this tutorial, we’ll look at how to plot a pie chart in python using matplotlib. How to plot a pie chart using Mapltolib? …

Read More about Plot a Pie Chart with Matplotlib

Plot Histogram in Python using Matplotlib

Histograms show the frequency distribution of values of a variable across different buckets. They are great for visualizing the distribution of a variable. In this tutorial, we’ll look at how to plot a histogram in python using matplotlib. How to plot a histogram with matplotlib? Matplotlib is a library in Python used for plotting visualizations …

Read More about Plot Histogram in Python using Matplotlib

Create a Scatter Plot in Python with Matplotlib

Scatter plots are great for visualizing data points in two dimensions. They’re particularly useful for showing correlations and groupings in data. In this tutorial, we’ll look at how to create a scatter plot in python using matplotlib. How to make a scatter plot with Matplotlib? Matplotlib is a library in python used for visualizing data. …

Read More about Create a Scatter Plot in Python with Matplotlib