示例#1
0
文件: trade.py 项目: sonya/eea
for base_country in base_countries:
    if base_country in config.bad_data_blacklist:
        continue

    for env_key in env_keys:
        trade_ratios(base_country, env_key)

for (year, plot) in balance_plots.items():
    plot.legend("off")
    plot.add_custom_setup("set yrange [ -1 : 1 ]")
    plot.write_tables()
    plot.generate_plot()

for (year, plot) in dta_plots.items():
    plot.style = "histogram horizontal"
    plot.width = 640
    plot.height = 640
    plot.add_custom_setup("set yrange [ 0 : 0.5 ]")
    plot.xvalues = list(sorted(plot.xvalues))

    #plot.write_tables()
    #plot.generate_plot()

# want later plot at the top so it rotates to the right
GNUPlot.multiplot(2, 1, dta_plots[2009], dta_plots[1995])

for (year, plot) in worldmap.items():
    plot.add_custom_setup("set format cb '%.0f'") # suppress scientific notation
    plot.write_tables()
    plot.generate_plot()
示例#2
0
    if base_country in config.bad_data_blacklist:
        continue

    for env_key in env_keys:
        trade_ratios(base_country, env_key)

for (year, plot) in balance_plots.items():
    plot.legend("off")
    plot.add_custom_setup("set yrange [ -1 : 1 ]")
    plot.write_tables()
    plot.generate_plot()

for (year, plot) in dta_plots.items():
    plot.style = "histogram horizontal"
    plot.width = 640
    plot.height = 640
    plot.add_custom_setup("set yrange [ 0 : 0.5 ]")
    plot.xvalues = list(sorted(plot.xvalues))

    #plot.write_tables()
    #plot.generate_plot()

# want later plot at the top so it rotates to the right
GNUPlot.multiplot(2, 1, dta_plots[2009], dta_plots[1995])

for (year, plot) in worldmap.items():
    plot.add_custom_setup(
        "set format cb '%.0f'")  # suppress scientific notation
    plot.write_tables()
    plot.generate_plot()