Skip to main content

All Questions

Tagged with
1 vote
0 answers
802 views

Python fractal tree generators

I wrote the scripts several days ago, they do exactly what I intended, but the performance is not very good, I am still stuck on for loops and don't know how to vectorize things, I wrote both scripts ...
Ξένη Γήινος's user avatar
6 votes
0 answers
139 views

A Python script that creates n-flakes

I have written a simple Python script that generates n-flakes using matplotlib. Wikipedia article on N-flake. I wrote two functions, one function generates pentaflake, the other generates hexaflake, I ...
Ξένη Γήινος's user avatar
2 votes
1 answer
316 views

A program that draws a spiral

To run this program the graphics.py module that is not in the standard library is needed and can be found here https://mcsp.wartburg.edu/zelle/python/ This amateur program is for the fun of graphics ...
Progrmming is fun's user avatar
7 votes
3 answers
858 views

Sierpinski turtle triangle

I am working through Programming Fundamentals with Python on Udacity. The assignment was to create a recursive triangle. I am happy with the output, but I am hoping for feedback on the actual ...
Brett Horstketter's user avatar
40 votes
7 answers
8k views

Increase performance creating Mandelbrot set in python

I created a program in python that generates an image of the mandelbrot set. The only problem I have is that the program is quite slow, it takes about a quarter of an hour to generate the following ...
Ian's user avatar
  • 609
13 votes
2 answers
812 views

Sierpiński's carpet fractal animation for teaching Python 3

I am teaching programming (in this case - 1 on 1 tutoring of a teenager interested in programming) and this code will be a final stage of a progression toward program generating a nice image of ...
reducing activity's user avatar
16 votes
3 answers
2k views

Generating Julia set

So, I just wanted to post something on Rosetta Code, and I found this task of generating and plotting a Julia set: http://www.rosettacode.org/wiki/Julia_set. There was already one solution but it was ...
Georgy's user avatar
  • 1,977
9 votes
2 answers
662 views

Speeding up Buddhabrot calculation in PyCuda

I've just started using PyCuda with Python 3, but I have some experience in high performance computing on CPU. I've tried to port one of my old models for generating the Buddhabrot to run on my GPU ...
maxb's user avatar
  • 1,562
4 votes
2 answers
1k views

Python the Dragon's Curve with turtle

I'm kind of new to Python, and I'm trying to improve (especially) my object oriented programming, and getting to know Python syntax better. I'd love to know if there is something to improve, (...
sheldonzy's user avatar
  • 461
17 votes
1 answer
1k views

Barnsley's Fern

I recently watched the Numberphile video entitled 'Chaos Game', and in that they showed how Sierpinski's triangle could be made from random numbers. But at the end of the video, they showed how this ...
George Willcox's user avatar
8 votes
2 answers
2k views

Drawing fractals with Turtle

So, I have my code here: ...
thomastaylor's user avatar
7 votes
1 answer
1k views

Python fractal tree using SVG

I made a simple program to generate fractal tree using PATH object of SVG. Any suggestions? ...
lukassz's user avatar
  • 273
4 votes
0 answers
638 views

Python Code For Drawing a Fractal Tree using pyglet

So I've just finished doing a coding challenge that involved drawing a fractal tree. Instead of doing it recursively(which is what I did initially but it proved to be to slow for branches greater than ...
Luis Averhoff's user avatar
6 votes
0 answers
2k views

Plotting the Mandelbrot set at different zoom levels [closed]

I'm interested in making an animated movie of a zoom in on a part of the Mandelbrot set. My code works well for a few zooms, but upon trying to zoom in quite far, I find that the fractal becomes "...
Matt's user avatar
  • 339
2 votes
2 answers
2k views

Generating fractals and space filling curves, using a general function for L-systems

An L-system is a rewriting system that can be used to generate fractals and space filling curves, because of its recursive nature. Some L-systems for mathematical curves can be found here. An example ...
Vermillion's user avatar

15 30 50 per page