Skip to content

Data Visualization with Python

Python provides a myriad of data visualization libraries that give you the flexibility to define every aspect of your visualization. It provides you the option of choosing between static images, which can be helpful for academic papers, and interactive visualizations that can help you delve deeper into your data.

Data Visualization with Python using Seaborn

Data Visualization with Python using Matplotlib

  • Retina Mode in Matplotlib: Enhancing Plot Quality
    Matplotlib is the defacto data visualization library in Python. It provides a ton of options to create beautiful plots and graphs, but many of these amazing features are hidden away in complex documentation. In this tutorial, you’ll learn how to use the retina mode feature, which allows you to enhance the quality of your plots for higher-resolution displays (or printing). The Quick Answer: How to Use Retina Mode Understanding the Need for Retina Mode in Matplotlib Matplotlib makes it simple to create graphs in Python, using highly customizable syntax. By default, Matplotlib graphs have a resolution of 100.0 DPI. This… Read More »Retina Mode in Matplotlib: Enhancing Plot Quality
  • How to Plot a Function in Python with Matplotlib
    Welcome to this comprehensive tutorial on data visualization using Matplotlib and Seaborn in Python. By working through this tutorial, you will learn to plot functions using Python, customize plot appearance, and export your plots for sharing with others. Throughout this tutorial, you’ll gain an in-depth understanding of Matplotlib, the cornerstone library for generating a wide array of customizable plots to visualize data effectively. As you become familiar with the basics, we’ll progress to Seaborn. This library builds on Matplotlib’s features and brings clear advantages in terms of visual aesthetics and ease of use. Here’s a sneak peek of what you’ll… Read More »How to Plot a Function in Python with Matplotlib
  • 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, opacity, and color of data points in three dimensions How to add titles and axis labels to your 3D scatterplot in Matplotlib Creating a 3D Scatterplot in Matplotlib In order to create 3D scatterplots in Matplotlib we can import some additional helper modules from Matplotlib.… Read More »How to Create 3D Scatterplots in Matplotlib
  • How to Change Font Size in Matplotlib Plot
    In this tutorial, you’ll learn how to change font sizes on a Matplotlib plot. You’ll learn everything you need to know to customize your Matplotlib plot to have exactly the font sizes you want. Data visualization is an incredible tool to better communicate your data. Being able to style your plot in the way you want is an important part of that. By the end of this tutorial, you’ll have learned: How to change font sizes globally in Matplotlib How to change font sizes of titles, axis labels, and tick labels Change font sizes using rc parameters Resetting font sizes… Read More »How to Change Font Size in Matplotlib Plot
  • 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 you to customize the size for all plots as well as for individual plots, based on other data criteria. By the end of this tutorial, you’ll have learned: How to set the marker size for all points in a Matplotlib scatterplot How to set the… Read More »Set Marker Size in Matplotlib Scatterplots
  • 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 end of this tutorial, you’ll have learned: How to change the plot and figure size using measurements in inches How to set the DPI of a plot and figure How to change the size of a plot by a factor of its size Loading a… Read More »How to Change Plot and Figure Size in Matplotlib
  • How to Add Titles to Matplotlib: Title, Subtitle, Axis Titles
    In this tutorial, you’ll learn how to add titles to your Matplotlib plots. You’ll learn how to add a title, a subtitle, and axis labels to your plot and subplots. You’ll learn how to style these titles individually and to multiple plots at once. Being able to add titles gives you the ability to better communicate what your data is saying. Matplotlib gives you incredible flexibility to better customize and tweak every element of your plots titles. By the end of this tutorial, you’ll have learned: How to add titles, subtitles, and axis titles to your plot How to style… Read More »How to Add Titles to Matplotlib: Title, Subtitle, Axis Titles
  • Pandas Scatter Plot: How to Make a Scatter Plot in Pandas
    In this tutorial, you’ll learn how to use Pandas to make a scatter plot. Under the hood, Pandas uses Matplotlib, which can make customizing your plot a familiar experience. Pandas allows you to customize your scatter plot by changing colors, adding titles, and more. In more recent versions, Pandas included the ability to use different backends for plotting data. In this tutorial, we’ll explore the default of Matplotlib, though most of the tutorial can extend to different backends. Being able to visualize your data easily is an important step in determining where to take your analysis. In many cases, looking… Read More »Pandas Scatter Plot: How to Make a Scatter Plot in Pandas
  • Plotting in Python with Matplotlib
    In this tutorial, you’ll learn how to get started with plotting in Python with the matplotlib library. You’ll learn how the matplotlib library works and gain an understanding of its “anatomy”. You’ll learn how to plot and customize some simple graphs and how to use the matplotlib library with Pandas. Finally, you’ll learn how to plot and discover different plot types. Making graphs, or plots, is an incredibly important skill in your data science journey. There’s a reason people say that a picture is worth a thousand words. Whether you’re using plotting as part of your exploratory data analysis or… Read More »Plotting in Python with Matplotlib
  • Matplotlib Scatter Charts – Learn all you need to know
    Learn how to create Matplotlib scatter charts, including how to customize colours, add titles, change transparency and size of markers.
  • Matplotlib Bar Charts – Learn all you need to know
    Learn how to create Matplotlib bar charts, including how to customize bar colours, add titles, stacked and double bar charts.
  • Matplotlib Line Charts – Learn all you need to know
    Learn how to make Matplotlib line charts, including how to add multiple lines, customize labels, add data labels, and add a legend.
  • Plotting a Histogram in Python with Matplotlib and Pandas
    Learn what histograms are and how to create them in Python with Matplotlib and Pandas.