28ce94bb0e373e69a92818089b672cd9530e7070,bindsnet/analysis/plotting.py,,plot_assignments,#Any#Any#Any#Any#,265
Before Change
plt.colorbar(im, cax=cax, ticks=np.arange(-1, 10))
else:
cbar = plt.colorbar(im, cax=cax, ticks=np.arange(-1, len(classes)))
cbar.ax.set_yticklabels(classes)
ax.set_xticks(()); ax.set_yticks(())
fig.tight_layout()
else:
After Change
div = make_axes_locatable(ax)
cax = div.append_axes("right", size="5%", pad=0.05)
if classes is None:
cbar = plt.colorbar(im, cax=cax, ticks=list(range(-1, 11)))
cbar.ax.set_yticklabels(["none"] + list(range(10)))
else:
cbar = plt.colorbar(im, cax=cax, ticks=np.arange(-1, len(classes)))
cbar.ax.set_yticklabels(["none"] + list(classes))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: BindsNET/bindsnet
Commit Name: 28ce94bb0e373e69a92818089b672cd9530e7070
Time: 2018-09-18
Author: djsaunde@umass.edu
File Name: bindsnet/analysis/plotting.py
Class Name:
Method Name: plot_assignments
Project Name: theislab/scanpy
Commit Name: c86127eb395817a446fbf8b44fb2763cf3cd6a6a
Time: 2018-07-13
Author: fidel.ramirez@gmail.com
File Name: scanpy/plotting/anndata.py
Class Name:
Method Name: heatmap
Project Name: rodluger/starry
Commit Name: 73bf812cc5598a0e6efb20d11de6568a80125a21
Time: 2018-04-29
Author: rodluger@gmail.com
File Name: misc/stability/brgrid.py
Class Name:
Method Name: RMinusOneRPlusOne