示例#1
0
def test_abundance_matplotlib_default_colors():
    # Matplotlib colors:
    ax = pp.abundance(Q,
                      pressure,
                      species,
                      colors=None,
                      highlight='H2O CH4 CO CO2 NH3 HCN H2 H He'.split())
示例#2
0
def test_abundance_custom_colors():
    colors = 'b r g y m k 0.5'.split()
    ax = pp.abundance(Q,
                      pressure,
                      species,
                      colors=colors,
                      highlight='H2O CH4 CO CO2 NH3 HCN H2 H He'.split())
示例#3
0
def test_abundance_one_to_one_dashes_and_colors_alternative_highlight():
    colors = 'b r g y m k 0.5'.split()
    ax = pp.abundance(Q,
                      pressure,
                      species[:7],
                      colors=colors,
                      dashes=[(), (3, 1), (), (), (), (), ()],
                      highlight='CH4 CO CO2 NH3 HCN H2 H He'.split())
示例#4
0
def test_abundance_one_to_one_colors_alternative_highlight():
    # ncolors >= nspecies, different highlight preserves coloring:
    colors = 'b r g y m k 0.5'.split()
    ax = pp.abundance(Q,
                      pressure,
                      species[:7],
                      colors=colors,
                      highlight='CH4 CO CO2 NH3 HCN H2 H He'.split())
示例#5
0
def test_abundance_one_to_one_colors():
    # Custom colors, ncolors == nspecies:
    colors = 'b r g y m k 0.5'.split()
    ax = pp.abundance(Q,
                      pressure,
                      species[:7],
                      colors=colors,
                      highlight='H2O CH4 CO CO2 NH3 HCN H2 H He'.split())
示例#6
0
def test_abundance_custom_colors_a():
    # Different highlight changes color assignments:
    colors = 'b r g y m k 0.5'.split()
    ax = pp.abundance(Q,
                      pressure,
                      species,
                      colors=colors,
                      highlight='CH4 CO CO2 NH3 HCN H2 H He'.split())
示例#7
0
def test_abundance_custom_dashes_and_colors():
    colors = 'b r g y m k 0.5'.split()
    ax = pp.abundance(Q,
                      pressure,
                      species,
                      colors=colors,
                      dashes=cycler(dashes=[(8, 1), (3, 1)]),
                      highlight='H2O CH4 CO CO2 NH3 HCN H2 H He'.split())
示例#8
0
def test_abundance_defaults_extra_molecs():
    spec2 = np.copy(species)
    spec2[1] = 'CH3'
    spec2[2] = 'O'
    ax = pp.abundance(Q,
                      pressure,
                      spec2,
                      colors='default',
                      highlight='H2O CH4 CO CO2 NH3 HCN H2 H He'.split())
示例#9
0
def test_abundance_default_molecs():
    ax = pp.abundance(Q,
                      pressure,
                      species,
                      colors='default',
                      highlight='H2O CH4 CO CO2 NH3 HCN H2 H He'.split())