Beispiel #1
0
from lib.util import tsv_get_column_index
from run import get_matrix_dimensions
import os
import math
from lib.util import make_sure_path_exists

import numpy as np
import matplotlib.pyplot as plt
import matplotlib

config.sink_dir = '%s/sink' % os.path.dirname(__file__)

config.axis_x = {'name': r'$H$', 'column': 'config_count_hubs'}
config.axis_y = {'name': r'$s$', 'column': 'config_etah_slack'}

config.output_nx, config.output_ny = get_matrix_dimensions()

config.interesting_z_axes = [{
    'name': 'Average Formation Size',
    'column': 'avg_formation_size'
}]


def run():

    data_file = '%s/latest.tsv' % config.sink_dir

    data = np.loadtxt(open(data_file, 'rb'), delimiter="\t", skiprows=1)

    axis_x = config.axis_x
    axis_y = config.axis_y
Beispiel #2
0
from ..multivariate import plot
from run import get_matrix_dimensions
import config, os

config.sink_dir = '%s/sink' % os.path.dirname(__file__)

config.axis_x = {
    'name' : r'$H$',
    'column' : 'config_count_hubs'
}
config.axis_y = {
    'name' : r'$s$',
    'column' : 'config_etah_slack'
}

config.output_nx, config.output_ny = get_matrix_dimensions()

def run():
    plot.run()