File:Contour graph of generating function for alignments.png

Summary

Description
English: The generating function for alignments , for complex . The axes are the real and imaginary part of and the colour saturation is the modulus of the function.
Date
Source Own work
Author Dom walden
PNG development
InfoField
Source code
InfoField

Python code

import matplotlib.pyplot as plt
from matplotlib import cm
import numpy as np

def f(z):
    return 1 / (1 - np.log(1 / (1 - z)))

# Make data
X = np.arange(-2, 2, 0.1)
Y = np.arange(-2, 2, 0.1)
X, Y = np.meshgrid(X, Y)
Z = abs(f(X+Y*1j))
levels = np.linspace(Z.min()-2, Z.max(), 20)

fig, ax = plt.subplots()
ax.contourf(X, Y, Z, levels=levels, cmap=cm.Blues)

ax.set_xlabel('Re')
ax.set_ylabel('Im')

plt.savefig("alignments_contour.png")

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Category:CC-BY-SA-4.0#Contour%20graph%20of%20generating%20function%20for%20alignments.pngCategory:Self-published work
Category:Complex analysis Category:Combinatorics
Category:CC-BY-SA-4.0 Category:Combinatorics Category:Complex analysis Category:PNG created with Matplotlib code Category:Self-published work