There are plenty of ways to display three variables in a single visualization. Heatmaps and Colormaps rely on encoding the third variable in the color. Bubble charts are Scatter Plots with the third variable encoded in size, and other solutions may introduce a Z-axis and rely on 3-dimensional representations.

Ternary plots are a less known solution that doesn’t require our user to compare colors, circumference sizes, or 3D distances.

They’re a two-dimensional representation where all the three variables are encoded by their positions to three connected axes, in the shape of a triangle.

This article will go through the basics of how to draw ternary scatter plots using Plotly Express.

#data-visualization #python #plotly #data-science

Basics of Ternary plots with Python’s Plotly
2.00 GEEK