18,700 results
Open links in new tab
  1. matplotlib.pyplot.legend — Matplotlib 3.11.2 documentation

    A string starting with an underscore is the default label for all artists, so calling Axes.legend without any arguments and without …

  2. matplotlib.legend — Matplotlib 3.11.2 documentation

    The Legend class is a container of legend handles and legend texts. The legend handler map specifies how to create legend handles …

  3. Matplotlib.pyplot.legend() in Python - GeeksforGeeks

    Dec 3, 2025 · A legend is an area describing the elements of the graph. In the Matplotlib library, there’s a function called legend () …

  4. python - Adding a matplotlib legend - Stack Overflow

    You can do this either by using the label= keyword in each of your plt.plot () calls or by assigning your labels as a tuple or list within …

  5. Matplotlib - Legends - Online Tutorials Library

    To add a legend to a Matplotlib plot, you typically use the matplotlib.pyplot.legend () function. This function is used to add a legend to …

  6. Custom Legends with Matplotlib - GeeksforGeeks

    Jul 23, 2025 · In this article, you learn to customize the legend in Matplotlib. matplotlib is a popular data visualization library. It is a …

  7. python - How to put the legend outside the plot - Stack Overflow

    In addition to all the excellent answers here, newer versions of matplotlib and pylab can automatically determine where to put the …

  8. Matplotlib Legend: Complete Guide to Adding and Customizing …

    Feb 9, 2026 · Learn how to add, position, and customize legends in Matplotlib. Master legend placement, styling, multiple legends, …

  9. Matplotlib: legend — SciPy Cookbook documentation

    Note that to set the default font size, one can change the legend.size property in the matplotlib rc parameters file. To change the font …

  10. Python Matplotlib Legend: Enhance Plot Readability - PyTutorial

    Dec 13, 2024 · Learn how to add and customize legends in Matplotlib plots with plt.legend (). Master legend placement, styling, and …