Surface NMR processing and inversion GUI
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

logo.py 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. def plotLogo(ax):
  2. #import matplotlib.pyplot as ax
  3. import numpy as np
  4. x = np.arange(-np.pi/2, 7.0*np.pi, .01)
  5. y = np.sin(x)
  6. y2 = np.cos(x)
  7. y3 = np.sin(.5*x)
  8. y4 = np.cos(.5*x)
  9. ax.plot(x, y, linewidth=1, color='lightgrey')
  10. ax.plot(x, -y, linewidth=1, color='lightgrey')
  11. ax.plot(x, y2, linewidth=1, color='lightgrey')
  12. ax.plot(x,-y2, linewidth=1, color='lightgrey')
  13. ax.plot(x, y3, linewidth=1, color='lightgrey')
  14. ax.plot(x, -y3, linewidth=1, color='lightgrey')
  15. ax.plot(x, y4, linewidth=1, color='lightgrey')
  16. ax.plot(x, -y4, linewidth=1, color='lightgrey')
  17. a = np.arange(10,615)
  18. ax.plot(x[a],y[a], linewidth=3, color='black')
  19. ax.fill_between(x[a],y[a], y2=-1, where=y[a]>=-1, interpolate=True, linewidth=0, alpha=.95, color='maroon')
  20. k = np.arange(615, 785)
  21. k2 = np.arange(785, 1105)
  22. ax.plot(x[k], y[k ], linewidth=3, color='black')
  23. ax.plot(x[k], -y[k ], linewidth=3, color='black')
  24. ax.plot(x[k2], y3[k2], linewidth=3, color='black')
  25. ax.plot(x[k2], -y3[k2], linewidth=3, color='black')
  26. #v = np.arange(1265,1865) # y
  27. v = np.arange(1105, 1720)
  28. ax.plot(x[v], -y2[v], linewidth=3, color='black')
  29. o = np.arange(1728,2357)
  30. ax.plot(x[o], y4[o], linewidth=3, color='black')
  31. ax.plot(x[o], -y4[o], linewidth=3, color='black')
  32. ax.fill_between(x[o], y4[o], y2=-y4[o], where=y4[o]<=1, interpolate=True, linewidth=0, alpha=.95, color='maroon')
  33. #ax.fill_between(x[o], -y4[o], y2=0, where=-y4[o]<=1, interpolate=True, linewidth=0, alpha=.5, color='black')
  34. #ax.plot(x[o], y2[o], linewidth=3, color='black')
  35. #ax.plot(x[o],-y2[o], linewidth=3, color='black')
  36. #ax.fill_between(x[a], y[a], y2=-1, where=y[a]>=-1, interpolate=True, linewidth=0, alpha=.5, color='black')
  37. #ax.show()