bookmark

How To Put Legend outside of Axes Properly in Matplotlib? - jdhao's blog


Description

When we want to put legend somewhere in a figure using Matplotlib, most of the time, the option loc='best' will produce the desired results. However, sometimes, we may want to have finer control over where the legend should be in the image. For example, we may want to put the legend outside of the axes, which is impossible using loc='best'.

Preview

Tags

Users

  • @bsc

Comments and Reviews