Created
July 8, 2016 04:01
-
-
Save ps2/c97076698e26d0a8ee372de12ee5a987 to your computer and use it in GitHub Desktop.
bit correlation plot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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