import numpy as np
import plot

## Example Line / Scatter Plot



## Example Stacked BarPlot
num_levels = 14
x_data = np.arange(num_levels)

other = [0.0, 0.009, 0.009, 0.012, 0.026, 0.026, 0.022, 0.017, 0.013, 0.008,
        0.006, 0.006, 0.004, 0.002]
strength = [0.0005009174, 0.0006568432, 0.0006928444, 0.0008480549, 0.001158953, 0.001708031, 0.001819134, 0.00141716, 0.0009710789, 0.0006639957, 0.0004270077, 0.000275135, 0.0001709461, 7.605553e-05]
coarsen = [0.01164198, 0.008229017, 0.00703907, 0.005827188, 0.007552862, 0.007503986, 0.005380154, 0.004024982, 0.003128052, 0.002726078, 0.002346039, 0.001647949, 0.001002073, 0.0005469322]
interp = [0.009503841, 0.01290488, 0.018785, 0.01869988, 0.01575208, 0.01245093, 0.00996685, 0.008462906, 0.006161928, 0.004806042, 0.003307104, 0.002390146, 0.001317978, 0.0007278919]
spgemm_comp = [0.005761862000000001, 0.005778075000000001, 0.007426973, 0.007259129, 0.00495625, 0.005456206, 0.007099633, 0.000946283, 0.000537872, 8.320799999999998e-05, 5.555100000000004e-05, 8.320799999999998e-05, 4.911419999999991e-05, 3.910059999999999e-05]
spgemm_comm = [0.003663063, 0.004372835, 0.005650997, 0.008009911, 0.00707078, 0.007119894, 0.006391287, 0.006044865, 0.004556179, 0.003355742, 0.002233267, 0.001381874, 0.000677824, 0.0002269745]

labels = ['Other', 'Strength', 'Coarsen', 'Interp', 'SpGEMM']

import numpy as np
import plot

## Example Line / Scatter Plot



## Example Stacked BarPlot
num_levels = 14
x_data = np.arange(num_levels)

other = [0.0, 0.009, 0.009, 0.012, 0.026, 0.026, 0.022, 0.017, 0.013, 0.008,
        0.006, 0.006, 0.004, 0.002]
strength = [0.0005009174, 0.0006568432, 0.0006928444, 0.0008480549, 0.001158953, 0.001708031, 0.001819134, 0.00141716, 0.0009710789, 0.0006639957, 0.0004270077, 0.000275135, 0.0001709461, 7.605553e-05]
coarsen = [0.01164198, 0.008229017, 0.00703907, 0.005827188, 0.007552862, 0.007503986, 0.005380154, 0.004024982, 0.003128052, 0.002726078, 0.002346039, 0.001647949, 0.001002073, 0.0005469322]
interp = [0.009503841, 0.01290488, 0.018785, 0.01869988, 0.01575208, 0.01245093, 0.00996685, 0.008462906, 0.006161928, 0.004806042, 0.003307104, 0.002390146, 0.001317978, 0.0007278919]
spgemm_comp = [0.005761862000000001, 0.005778075000000001, 0.007426973, 0.007259129, 0.00495625, 0.005456206, 0.007099633, 0.000946283, 0.000537872, 8.320799999999998e-05, 5.555100000000004e-05, 8.320799999999998e-05, 4.911419999999991e-05, 3.910059999999999e-05]
spgemm_comm = [0.003663063, 0.004372835, 0.005650997, 0.008009911, 0.00707078, 0.007119894, 0.006391287, 0.006044865, 0.004556179, 0.003355742, 0.002233267, 0.001381874, 0.000677824, 0.0002269745]

labels = ['Other', 'Strength', 'Coarsen', 'Interp', 'SpGEMM']

## Example Line / Scatter Plot ## Example Stacked BarPlot