flekschas / jupyter-scatter

Interactive 2D scatter plot widget for Jupyter Lab and Notebook. Scales to millions of points!
https://jupyter-scatter.dev
Apache License 2.0
392 stars 17 forks source link

axvline and axhline #128

Closed abast closed 2 months ago

abast commented 5 months ago

Is there a possibility to show horizontal or vertical (non-selectable) lines in the plot, similar to matplotlibs axvline and axhline?

flekschas commented 5 months ago

Unfortunately such a feature is not available yet.

The closest thing you can get is drawing grid lines where the axis ticks are. While not the same as a dedicated x/y line the grid lines redraw as you zoom in and should help locating points. You can activate them via scatter.axes(grid=True)