Пример #1
0
# use TEX for interpreter
plt.rc('text',usetex=True)
plt.rc('text.latex', preamble=[r'\usepackage{amsmath}',r'\usepackage{bm}'])
# use serif font
plt.rc('font',**font)

ncol = 1
nrow = 1

plot_height, subplot_height, subplot_width = figureSize.UniformSubplots(
    plot_width, [nrow, ncol], subplot_ratio, 
    [margin_left, margin_bottom, margin_right, margin_top],
    [space_height, space_width])

fig, ax = plt.subplots(
        nrow, ncol, figsize=figureSize.cm2inch(plot_width,plot_height) )

#

linestyle = ['-', '--', '-.', ':']

strain = np.array([50, 100, 200, 400])

speciesProgressVariable = ['CO2', 'CO', 'H2O', 'H2']
slopeProgressVariable = 5.

flame_params = {}
flame_params['F'] = 'CH4'
flame_params['p'] = 1
flame_params['a'] = None
flame_params['phif'] = 'inf'
Пример #2
0
plt.rc('text.latex', preamble=[r'\usepackage{amsmath}',r'\usepackage{bm}'])
# use serif font
plt.rc('font',**font)

ncol = 1
nrow = 1

plot_height, subplot_height, subplot_width = figureSize.UniformSubplots(
    plot_width, [nrow, ncol], subplot_ratio, 
    [margin_left, margin_bottom, margin_right, margin_top],
    [space_height, space_width])

#fig, ax = plt.subplots(
#        nrow, ncol, figsize=figureSize.cm2inch(plot_width,plot_height) )

fig = plt.figure( figsize = figureSize.cm2inch( plot_width, plot_height ),
                  frameon = True )

axRatio = 0.618

rect = (margin_left/plot_width,
        margin_bottom/plot_height,
        axRatio*subplot_width/plot_width,
        subplot_height/plot_height)
ax0 = fig.add_axes(rect)

rect = ((margin_left+axRatio*subplot_width)/plot_width,
        margin_bottom/plot_height,
        (1-axRatio)*subplot_width/plot_width,
        subplot_height/plot_height)
ax1 = fig.add_axes(rect)