Skip to content

Instantly share code, notes, and snippets.

@ps2
Created July 8, 2016 04:01
Show Gist options
  • Select an option

  • Save ps2/c97076698e26d0a8ee372de12ee5a987 to your computer and use it in GitHub Desktop.

Select an option

Save ps2/c97076698e26d0a8ee372de12ee5a987 to your computer and use it in GitHub Desktop.
bit correlation plot
from matplotlib import gridspec
ticks = np.arange(0, bit_deltas.shape[1], 8.0)
fig = plt.figure(figsize=(15, 15))
gs = gridspec.GridSpec(4, 1)
ax1 = fig.add_subplot(gs[0:3,:])
ax2 = fig.add_subplot(gs[3,:])
ax1.matshow(bit_deltas.corr(), aspect='auto')
ax1.set_xticks(ticks)
ax1.set_yticks(ticks)
ax3 = plt.subplot(414, sharex=ax1)
ax3.plot(bit_deltas.sum(axis=0))
plt.show()
gs.tight_layout(fig)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment