Skip to content

Instantly share code, notes, and snippets.

@Balaje
Last active July 9, 2021 13:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Balaje/b4a6b3adceca1f84cf460acf0cfbaeee to your computer and use it in GitHub Desktop.
Save Balaje/b4a6b3adceca1f84cf460acf0cfbaeee to your computer and use it in GitHub Desktop.
Complex Plots with UnicodePlots.jl
using UnicodePlots
using ComplexPhasePortrait
nx = 1000
x = range(-1, stop=1, length=nx)
Z = x' .+ reverse(x)*im
f = z -> (z - 0.5im)^2 * (z + 0.5+0.5im)/z
fz = f.(Z)
img = portrait(fz)
heatmap(img,width=80,height=80)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment