update hilbert_curve.py

This commit is contained in:
Atharva 2024-10-15 12:22:37 +05:30
parent 69824543c0
commit af17e54d24

View File

@ -106,7 +106,10 @@ def hilbert_curve(
def plot_hilbert_curve(points: list[tuple[float, float]]) -> None:
"""
Plots the hilbert curve using mtplotlib
No doctest implemented ( returns None )
Example
--------
>>> plot_hilbert_curve([(-0.25, 0.25), (-0.25, -0.25), (0.25, -0.25), (0.25, 0.25)])
"""
x_coords = [p[0] for p in points]
y_coords = [p[1] for p in points]