jdhao's digital space
Recent content on jdhao's digital space
马上订阅 jdhao's digital space RSS 更新: https://jdhao.github.io/index.xml
How to Set the Aspect Ratio of Image (or Axes) in Matplotlib?
2017年6月3日 00:58
In Matplotlib, Axes is
the primary place where we put plot elements, such as lines, texts and
legends. However, for a long time, I failed to grasp the meaning of
aspect ratio in Matplotlib, thus was constantly frustrated by the
behavior of Maplotlib every time I attempted to change the aspect ratio
of a plot. This post is the result of my attempt to understand it and my
findings. Hope it can help you too.