Skip to content

This repository is built for plotting high quality pictures of complex variable functions

Notifications You must be signed in to change notification settings

showsunny/DomainColoring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 

Repository files navigation

DomainColoring

This repository is used to draw high-quality pictures of complex variable functions. The more samples are input, the richer the image details are, and the image size also needs to be larger. mandelbralt

使用方法

在终端中切换至代码所在目录然后执行以下代码(可输入自定义函数,格式为python格式,自变量为大写Z,如果需要用到三角函数指数对数等函数,写成np.+函数名即可如np.sin(),具体函数请参阅numpy)

python complexfunc.py --F 'Z**2-8/Z'

在jupyternotebook环境中运行

from complexfunc import plot_domain_coloring
plot_domain_coloring(
    F_expression='(Z**2-1)*(Z-2-1j)**2/(Z**2+2+2*1j)',
    phase_contour_increase=False,
    phase_contour_decrease=False,
    modulus_contour_increase=True,
    modulus_contour_decrease=False,
    checkboard=True,
    axes=False,
    continual_gradient=False,
    coordinates=(-2.5, 2.5, -2.5, 2.5),
    figsize=(5.24, 3.74)
)

效果如下图

figure1

About

This repository is built for plotting high quality pictures of complex variable functions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages