Skip to content
Snippets Groups Projects
Commit b4743ca0 authored by ulc0011's avatar ulc0011
Browse files

ENH: Changed ticks rotation and positioning in heatmap #3

parent 3848f5f6
No related branches found
No related tags found
No related merge requests found
......@@ -8,8 +8,8 @@ import matplotlib.pyplot as pp
pp.switch_backend('Qt5Agg')
import numpy as np
import matplotlib.colors as mpc
import plotly.graph_objs as go
import plotly
#import plotly.graph_objs as go
#import plotly
import seaborn as sb; sb.set()
#import os
data = None # TODO handling data as parameter
......@@ -75,9 +75,10 @@ if __name__=='__main__':
sb.set_context('talk')
hm = sb.heatmap(data, annot=True, annot_kws = {"size": cell_font_size}, fmt=".3f", cmap=cm, square=False, cbar=False)
hm.xaxis.tick_top()
pp.xticks(np.arange(0,x),k)
pp.yticks(np.arange(0,y),ky)
pp.yticks(rotation=90)
hm.set_xticklabels(k, ha = 'center')
#pp.set_xticklabels
hm.set_yticklabels(ky, va = 'center')
pp.yticks(rotation=0)
pp.xlabel('Frequency [GHz (uncore)]')
pp.ylabel('Frequency [GHz (core)]')
pp.show()
\ No newline at end of file
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