コード例 #1
0
ファイル: counterfact.py プロジェクト: sonya/eea
    def __init__(self, filename, title, group=None):
        GNUPlot.__init__(self, filename, title, group)

        self.aliases = {
            "A": "actual",
            "Y": "final demand",
            "L": "industry linkages",
            "J": "sector intensity",
        }

        styles = {
            "A": 'pointtype 7 linetype rgb "#B0C4DE"',
            "Y": 'pointtype 8 linetype rgb "#CC9900"',
            "L": 'pointtype 4 linetype rgb "#0000FF"',
            "J": 'pointtype 5 linetype rgb "#663300"',
        }

        for (indicator, series_style) in styles.items():
            series_title = self.get_series_title(indicator)
            self.set_series_style(series_title, series_style)

        self.base_year = None
        self.compact = False

        self.extra_specs = []
コード例 #2
0
ファイル: counterfact.py プロジェクト: sonya/eea
    def __init__(self, filename, title, group=None):
        GNUPlot.__init__(self, filename, title, group)

        self.aliases = {
            "A": "actual",
            "Y": "final demand",
            "L": "industry linkages",
            "J": "sector intensity",
            }

        styles = {
            "A": 'pointtype 7 linetype rgb "#B0C4DE"',
            "Y": 'pointtype 8 linetype rgb "#CC9900"',
            "L": 'pointtype 4 linetype rgb "#0000FF"',
            "J": 'pointtype 5 linetype rgb "#663300"',
            }

        for (indicator, series_style) in styles.items():
            series_title = self.get_series_title(indicator)
            self.set_series_style(series_title, series_style)

        self.base_year = None
        self.compact = False

        self.extra_specs = []
コード例 #3
0
ファイル: plotutils.py プロジェクト: sonya/eea
    def __init__(self, filename, title, group=None):
        GNUPlot.__init__(self, filename, title, group)
        self.series_values = ["x", "y", "size", "color", "style"]
        self.style = "points"
        self.legend("left top")
        self.legend("spacing 10 samplen 6 reverse")
        self.legend("width -6")

        # get largest circle for each style
        self.sizes_by_style = {}
        self.fake_legend = []
コード例 #4
0
ファイル: plotutils.py プロジェクト: sonya/eea
    def __init__(self, filename, title, group=None):
        GNUPlot.__init__(self, filename, title, group)
        self.country_values = {}
        self.cbrange = None
        self.fillcolor = "#000066"

        self.xrange = (-180, 180)
        self.yrange = (-70, 90)

        # symbols by country
        self.miniplots = {}
        self.miniplot_legend = {}
        self.miniplot_averages = {}
        self.miniplot_key_order = []

        # graduated colors
        self.numcolors = 5  # 0 for continuous gradient
        self.binthresholds = []
        self.keytitles = {}
        self.break_method = "equal"
        self.bincolors = [ # from http://colorbrewer2.org
            "#FFFFCC", "#A1DAB4", "#41B6C4", "#2C7FB8", "#253494"
            ]
コード例 #5
0
 def __init__(self, filename, title, group=None):
     GNUPlot.__init__(self, filename, title, group)
     self.overlay_values = {}
     self.writing_plotscript = False
コード例 #6
0
ファイル: total_energy.py プロジェクト: sonya/eea
 def __init__(self, filename, title, group=None):
     GNUPlot.__init__(self, filename, title, group)
     self.overlay_values = {}
     self.writing_plotscript = False