'(Python)Identifing line graph legend in matplotlib

There are 20 line-graph(matplotlib.pyplot) as below picture. To differenciate lines , color coded.

  1. Is there a way to locate legend upward ? (Legend list is long, and it shows part of the legend)
  2. Does Pyplot have functionality which shows a legend of a graph by hovering the mouse over the specific line graph?

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source