Skip to content

Commit 7efa035

Browse files
committed
Fixed code data links
1 parent 47bf950 commit 7efa035

File tree

5 files changed

+5
-46
lines changed

5 files changed

+5
-46
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ This work is licensed under a
44
[Creative Commons Attribution 4.0 International License]
55
(http://creativecommons.org/licenses/by/4.0/).
66

7+
Website: http://www.labri.fr/perso/nrougier/from-python-to-numpy
8+
79
* [Preface](01-preface.rst)
810
* [Introduction](02-introduction.rst)
911
* [Anatomy of an array](03-anatomy.rst)

code/fractal-dimension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def boxcount(Z, k):
2929
import matplotlib.pyplot as plt
3030
import matplotlib.patches as patches
3131

32-
Z = 1.0 - misc.imread("../pics/Great-Britain.png")/255
32+
Z = 1.0 - misc.imread("../data/Great-Britain.png")/255
3333

3434
print(fractal_dimension(Z, threshold=0.25))
3535

code/mandelbrot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,6 @@ def mandelbrot(xmin, xmax, ymin, ymax, xn, yn, itermax, horizon=2.0):
7676
extent=[xmin, xmax, ymin, ymax], interpolation="bicubic")
7777
ax.set_xticks([])
7878
ax.set_yticks([])
79-
plt.savefig("../pics/mandelbrot.png")
79+
plt.savefig("../data/mandelbrot.png")
8080
plt.show()
8181

code/mosaic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,5 +107,5 @@ def add_point(p):
107107
patch = PathPatch(path, facecolor=color, edgecolor="none")
108108
ax.add_patch(patch)
109109

110-
plt.savefig("../pics/mosaic.png")
110+
plt.savefig("../data/mosaic.png")
111111
plt.show()

code/quickref-creation.py

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)