Surface NMR processing and inversion GUI
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

SEGPlot.py 1.9KB

1234567891011121314151617181920212223242526272829303132333435
  1. #################################################################################
  2. # GJI final pub specs #
  3. import matplotlib #
  4. from matplotlib import rc #
  5. #matplotlib.rcParams['text.latex.preamble']=[r"\usepackage{amsmath,amssymb}"] #
  6. matplotlib.rcParams['text.latex.preamble']=[r"\usepackage{timet,amsmath,amssymb}"] #
  7. rc('font',**{'family':'serif','serif':['timet']}) #
  8. rc('font',**{'size':8}) #
  9. rc('text', usetex=True) #
  10. # converts pc that GJI is defined in to inches #
  11. # In GEOPHYSICS \textwidth = 42pc #
  12. # \columnwidth = 20pc #
  13. # one column widthe figures are 20 picas #
  14. # one and one third column figures are 26 picas #
  15. def pc2in(pc): #
  16. return pc*12/72.27 #
  17. #################################################################################
  18. import numpy as np
  19. light_grey = np.array([float(248)/float(255)]*3)
  20. def fixLeg(legend):
  21. rect = legend.get_frame()
  22. #rect.set_color('None')
  23. rect.set_facecolor(light_grey)
  24. rect.set_linewidth(0.0)
  25. rect.set_alpha(0.5)
  26. def deSpine(ax1):
  27. spines_to_remove = ['top', 'right']
  28. for spine in spines_to_remove:
  29. ax1.spines[spine].set_visible(False)
  30. #ax1.xaxis.set_ticks_position('none')
  31. #ax1.yaxis.set_ticks_position('none')
  32. ax1.get_xaxis().tick_bottom()
  33. ax1.get_yaxis().tick_left()