Beginning Leibniz project

This commit is contained in:
Grant Sanderson
2017-05-09 14:54:58 -07:00
parent f3eb43f96f
commit 58d329e8b3
3 changed files with 214 additions and 3 deletions

View File

@ -176,11 +176,12 @@ def complex_string(complex_num):
class ComplexPlane(NumberPlane):
CONFIG = {
"color" : GREEN,
"color" : BLUE,
"unit_to_spatial_width" : 1,
"line_frequency" : 1,
"faded_line_frequency" : 0.5,
"number_at_center" : complex(0),
"number_scale_factor" : 0.5,
}
def __init__(self, **kwargs):
digest_config(self, kwargs)
@ -239,7 +240,6 @@ class ComplexPlane(NumberPlane):
self.add(Line(ORIGIN, end_point, **config))
return self
class ComplexFunction(ApplyPointwiseFunction):
def __init__(self, function, mobject = ComplexPlane, **kwargs):
if "path_func" not in kwargs: