anyplotlib.HLineWidget# class anyplotlib.HLineWidget(push_fn, *, y, color='#00e5ff', linewidth=2, snap_values=None)[source]# Bases: Widget Draggable horizontal line overlay widget for bar charts. Allows interactive selection of a single y-axis value. The line can be dragged up/down to change the selected value. Parameters: push_fn (Callable) – Update callback. y (float) – Initial y-position in data coordinates. color (str, optional) – CSS colour for the line. Default "#00e5ff". linewidth (float, optional) – Line stroke width in px. Default 2.