better plotting

This commit is contained in:
Benoît Sierro
2021-10-13 09:59:14 +02:00
parent b0f1ef56a0
commit 969509be5a
9 changed files with 102 additions and 54 deletions

16
testing/test_all_zeros.py Normal file
View File

@@ -0,0 +1,16 @@
from scgenerator.math import all_zeros
import matplotlib.pyplot as plt
import numpy as np
def main():
x = np.linspace(-10, 10, 30)
y = np.sin(x)
z = all_zeros(x, y)
plt.plot(x, y)
plt.plot(z, z * 0, ls="", marker="o")
plt.show()
if __name__ == "__main__":
main()