Sitemap
TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Member-only story

What aspect ratio to use when creating line plots

6 min readAug 27, 2021

--

One of the most overlooked aspects of creating charts is the use of incorrect aspect ratios. Even in photography, changing the aspect ratio makes the photograph look skewed. Here, it is easy to rectify the aspect ratio. But is it that easy when creating charts?

Let’s compare three plots and try to answer the following questions:

  • Can you see the difference between the plots, or is there none?
  • Which of the plots is steeper or flatter? Can you guess?
Image by author

If I say all the three plots are the same. The generated plots are for the line equation y = x, will your answers to the above question change or remain the same.

The leftmost plot has the steepest slope, and the rightmost is flatter. So, you can guess using an incorrect aspect ratio can send the wrong information.

--

--

TDS Archive
TDS Archive

Published in TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Abhinav Malasi
Abhinav Malasi

Written by Abhinav Malasi

Passionate about Dataviz | Mathviz | Machine Learning using R. In quest to help SME’s to leverage the power of data.