-
Notifications
You must be signed in to change notification settings - Fork 1
Drawing Julia sets for Newton mappings
Harry-icl edited this page Jun 15, 2021
·
1 revision
Drawing Julia sets for Newton mappings is again very similar to the other mappings. Here we need to instead import either QuadraticNewtonMapping
or CubicNewtonMapping
, depending on which function we would like to see the Newton mapping for, and then we draw the Julia set in a very similar way:
from julia import QuadraticNewtonMapping
qnm = QuadraticNewtonMapping(c=1)
im = qnm.draw_julia(res_x=1440, res_y=1440)
Again, we create an instance of a Map
object and then we draw the Julia set for that object, we can then manipulate im
using various methods on the Pillow.Image.Image
object.