Surface NMR processing and inversion GUI
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

SlidesPlot.py 1.8KB

12345678910111213141516171819202122232425262728293031323334
  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()