Surface NMR processing and inversion GUI
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. if __name__ == "__main__":
  34. import matplotlib.pyplot as plt
  35. fig = plt.figure( figsize=(6,3) )
  36. #ax = fig.add_axes([.1,.1,.8,.8])
  37. ax = fig.add_subplot(211)
  38. fig.patch.set_facecolor( None )
  39. fig.patch.set_alpha( .0 )
  40. ax.axis('off')
  41. plotLogo(ax)
  42. ax.xaxis.set_major_locator(plt.NullLocator())
  43. ax.yaxis.set_major_locator(plt.NullLocator())
  44. subplot2 = fig.add_subplot(212)
  45. subplot2.text(0.5, 1.,'surface NMR workbench',
  46. horizontalalignment='center',
  47. verticalalignment='center',
  48. size=22,
  49. transform = subplot2.transAxes)
  50. subplot2.xaxis.set_major_locator(plt.NullLocator())
  51. subplot2.yaxis.set_major_locator(plt.NullLocator())
  52. subplot2.axis('off')
  53. plt.savefig("logo.pdf")
  54. plt.show()
  55. #ax.fill_between(x[o], -y4[o], y2=0, where=-y4[o]<=1, interpolate=True, linewidth=0, alpha=.5, color='black')
  56. #ax.plot(x[o], y2[o], linewidth=3, color='black')
  57. #ax.plot(x[o],-y2[o], linewidth=3, color='black')
  58. #ax.fill_between(x[a], y[a], y2=-1, where=y[a]>=-1, interpolate=True, linewidth=0, alpha=.5, color='black')
  59. #ax.show()