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.

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