About 7,310 results
Open links in new tab
  1. matplotlib.pyplot.hlines — Matplotlib 3.11.0 documentation

    matplotlib.pyplot.hlines # matplotlib.pyplot.hlines(y, xmin, xmax, colors=None, linestyles='solid', *, label='', data=None, **kwargs) [source] # Plot horizontal lines at each y from xmin to xmax. …

  2. Plot a Horizontal line in Matplotlib - GeeksforGeeks

    Jul 23, 2025 · In Matplotlib, we can draw horizontal lines on a plot to indicate thresholds, reference points or important levels in the data. These lines can be used to highlight specific values for better …

  3. python - Plot a horizontal line on a given plot - Stack Overflow

    Oct 28, 2015 · Use matplotlib.pyplot.hlines: These methods are applicable to plots generated with seaborn and pandas.DataFrame.plot, which both use matplotlib. Plot multiple horizontal lines by …

  4. How to Draw Horizontal Lines in Matplotlib - Python Guides

    Jul 11, 2025 · Learn how to draw horizontal lines in Matplotlib with clear, practical examples. Master plot(), axhline(), and hlines() to enhance your Python plots.

  5. matplotlib.axes.Axes.axhline — Matplotlib 3.11.0 documentation

    matplotlib.axes.Axes.axhline # Axes.axhline(y=0, xmin=0, xmax=1, **kwargs) [source] # Add a horizontal line spanning the whole or fraction of the Axes. Note: If you want to set x-limits in data coordinates, …

  6. Matplotlib.pyplot.hlines() in Python - GeeksforGeeks

    Jul 12, 2025 · Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays and designed to work with the …

  7. Matplotlib Horizontal Line with Text in Python

    Sep 17, 2025 · Learn how to draw a horizontal line with text in Matplotlib using Python. Step-by-step methods with full practical code examples for clear data visualization.

  8. How to Draw a Horizontal Line in Matplotlib (With Examples)

    Jun 11, 2021 · This tutorial explains how to add a horizontal line to Matplotlib plots, including several examples.

  9. Python Charts - Matplotlib Horizontal and Vertical Lines

    Aug 29, 2025 · Tutorial using Matplotlib to add horizontal and/or vertical lines, with custom styling, to a plot

  10. hlines and vlines — Matplotlib 3.11.0 documentation

    hlines and vlines # This example showcases the functions hlines and vlines.