Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
rytheranderson committed Apr 6, 2024
1 parent 5ccbf91 commit 58377fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ def lyapunov_example() -> None:

def randomwalk_example() -> None:
start_time = time.time()
moves = pf.construct_moves((1, 0), (0, 1))
res = pf.randomwalk(moves, niter=1000000, width=4, height=3, dpi=300)
res = pf.randomwalk(niter=1000000, width=4, height=3, dpi=300)
pf.images.image(res, cmap=colormaps["gnuplot"], gamma=1.0)
plt.savefig("example_images/randomwalk_ex.png")
print(f"calculation took {round((time.time() - start_time), 2)} seconds")
Expand Down

0 comments on commit 58377fa

Please sign in to comment.