Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit af17e54

Browse files
committedOct 15, 2024·
update hilbert_curve.py
1 parent 6982454 commit af17e54

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎fractals/hilbert_curve.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,10 @@ def hilbert_curve(
106106
def plot_hilbert_curve(points: list[tuple[float, float]]) -> None:
107107
"""
108108
Plots the hilbert curve using mtplotlib
109-
No doctest implemented ( returns None )
109+
110+
Example
111+
--------
112+
>>> plot_hilbert_curve([(-0.25, 0.25), (-0.25, -0.25), (0.25, -0.25), (0.25, 0.25)])
110113
"""
111114
x_coords = [p[0] for p in points]
112115
y_coords = [p[1] for p in points]

0 commit comments

Comments
 (0)
Please sign in to comment.