Skip to content
Snippets Groups Projects
Commit 7705bf39 authored by Ivo Peterek's avatar Ivo Peterek
Browse files

ENH: heatmap drawing as function #5

parent ca49f731
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ def onclick(event):
print('Indices and content of current cell [{},{}]: {}'.format(idx,idy,data[idy+1,idx]))
if __name__=='__main__':
def draw_heatmap():
C = np.loadtxt('../input/colormap.txt')
cm = mpc.ListedColormap(C/255.0)
'''data = np.array([[1, 2, 3, 4, 5],
......@@ -81,4 +81,5 @@ if __name__=='__main__':
pp.yticks(rotation=0)
pp.xlabel('Frequency [GHz (uncore)]')
pp.ylabel('Frequency [GHz (core)]')
pp.show()
\ No newline at end of file
pp.show()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment