Python Posts

How to Create 3D Scatterplots in Matplotlib Cover Image

How to Create 3D Scatterplots in Matplotlib

In this tutorial, you’ll learn how to make 3D scatterplots using Matplotlib. Being able to visualize data in three dimensions can be an important step in clearly articulating data, especially in science and machine learning. By the end of this tutorial, you’ll have learned: How to plots 3D scatterplots using Matplotlib How to change size,

How to Create 3D Scatterplots in Matplotlib Read More »

How to Calculate Percentiles in NumPy with np percentile Cover Image

How to Calculate Percentiles in NumPy with np.percentile

In this tutorial, you’ll learn how to calculate percentiles in NumPy using the np.percentile() function. A percentile is a measure that indicates the value below which a percentage of observations in a group fall. For example, the 50th percentile will return the value from which half of the values are under. Knowing how to calculate

How to Calculate Percentiles in NumPy with np.percentile Read More »

Matplotlib Marker Size Scatterplots Cover Image

Set Marker Size in Matplotlib Scatterplots

In this tutorial, you’ll learn how to define and set the marker size in Matplotlib scatterplots. Being able to control the size of your Matplotlib scatterplots allows you to add extra information to your scatterplots. This allows you to communicate more details about your data and make it clearer to your visualization’s readers. Matplotlib allows

Set Marker Size in Matplotlib Scatterplots Read More »

Differences Between Python Lists and Tuples Cover Image

Python: Differences Between Lists and Tuples

In this tutorial, you’ll learn the differences between Python lists and tuples. Lists and tuples are fundamental Python container data structures. On the surface, they seem very similar. However, there are a number of unique differences between them that makes their use cases quite clear. By the end of this tutorial, you’ll have learned: What

Python: Differences Between Lists and Tuples Read More »

How to Fix Python indentationerror unindent does not match any outer indentation level Solution Cover Image

How to Fix: Python indentationerror: unindent does not match any outer indentation level Solution

In this tutorial, you’ll learn how to fix a common error you’ll encounter in Python, the indentation error. Indenting your code is an important function for writing useful programs. However, indenting code improperly will raise the following error: “Python indentationerror: unindent does not match any outer indentation level”. By the end of this tutorial, you’ll

How to Fix: Python indentationerror: unindent does not match any outer indentation level Solution Read More »

How to Change Plot and Figure Size in Matplotlib Cover Image

How to Change Plot and Figure Size in Matplotlib

In this tutorial, you’ll learn how to change the plot and figure sizes in Matplotlib. Data visualization is a valuable tool to help you communicate your data. Being able to customize exactly how your plots are sized gives you the flexibility to produce your desired results. This allows you to produce print-ready visualizations. By the

How to Change Plot and Figure Size in Matplotlib Read More »