Skip to content
Snippets Groups Projects
Commit a01a7143 authored by yagerd87's avatar yagerd87
Browse files

Changed Heatmap function to take Latex text for titles and save Heatmap fig as...

Changed Heatmap function to take Latex text for titles and save Heatmap fig as pdf trimmed of border
parent 65582dc9
No related branches found
No related tags found
No related merge requests found
......@@ -1158,7 +1158,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.7"
"version": "3.6.5"
}
},
"nbformat": 4,
......
......@@ -68,10 +68,11 @@ def Heatmap(W1, W2):
Ro = np.corrcoef(W1.T,W2.T)[len(W1.T):,:len(W2.T)]
plt.imshow(Ro, cmap='hot', interpolation='nearest')
plt.colorbar()
plt.title('Heatmap for comparing two runs of W')
plt.xlabel('Columns of W1')
plt.ylabel('Columns of W2')
plt.savefig('Heatmap')
plt.rc('text', usetex=True)
plt.title(r'Heatmap for comparing two runs of $W$')
plt.xlabel(r'Columns of $W_1$')
plt.ylabel(r'Columns of $W_2$')
plt.savefig('Heatmap.pdf', bbox_inches="tight")
plt.show()
return None
......
This diff is collapsed.
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