-latex code in matplotlib
天体物理科研作图要求
plot_example.py
import astropy.io.fits as pyfits
from pylab import *
import pylab
fig_width_pt = 255.76535 # Get this from LaTeX using \showthe\columnwidth
inches_per_pt = 1.0/72.27 # Convert pt to inches
golden_mean = 1.2*(sqrt(5)-1.0)/2.0 # Aesthetic ratio
fig_width = fig_width_pt*inches_per_pt # width in inches
fig_height = fig_width*golden_mean # height in inches
fig_size = [fig_width,fig_height]
params =