Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 28eb424

Browse files
corriger une erreur de lien
1 parent 8cc8e26 commit 28eb424

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎cantor set.jl‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ rectangle(w,h,x,y)=Shape(x.+[0,w,w,0],y.-[0,0,h,h])
3737
#we remove the mid part from each bar and keep the rest
3838
#this effectively creates a binary tree
3939
#check the link below for more details on math
40-
# https//www.math.stonybrook.edu/~scott/Book331/Cantor_sets.html
40+
# https://www.math.stonybrook.edu/~scott/Book331/Cantor_sets.html
4141
function cantor_set(x1,x2,y,n,
4242
bar_height=5,between_interval=10)
4343

@@ -70,6 +70,7 @@ end
7070
#viz
7171
#as n increases
7272
#the bar gets too slim to be visible
73+
gr(size=(250,250))
7374
fig=plot(legend=false,grid=false,axis=false,ticks=false)
7475
plot!(rectangle((x2-x1),bar_height,x1,y))
7576
cantor_set(x1,x2,y,n)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /