Skip to content

Instantly share code, notes, and snippets.

View SoymilkRules's full-sized avatar

Haishan Zhu SoymilkRules

View GitHub Profile
#!/usr/bin/python
import matplotlib.pyplot as plt
import matplotlib.cm as cm
import numpy as np
def my_plot(ifile, ofile, mark_size, plot_width, plot_height, space):
dpoints_raw = np.genfromtxt(ifile, dtype=None, delimiter=',',
names=['Benchmark', 'Config', 'NormIPC', 'Access', 'Energy'])
#!/usr/bin/python
import matplotlib.pyplot as plt
import matplotlib.cm as cm
import numpy as np
space = 0.2
def my_plot(ifile, ofile, ylabel, last_ind, labels, plot_width, plot_height):
nlabels = len(labels)
#!/usr/bin/python
import matplotlib.pyplot as plt
import matplotlib.cm as cm
import numpy as np
plot_width = 20
plot_height = 4
space = 0.2