fix missing subplot command

This commit is contained in:
2021-05-04 11:45:23 +02:00
parent 2a16648b05
commit 2144d5913f

View File

@@ -136,7 +136,8 @@ def compute_heatmap(weight, grid_height, grid_width):
return heatmap
def plot_mps(fig, ax, x, y, labels, colors, cmap = plt.cm.RdYlGn):
def plot_hoverscatter(x, y, labels, colors, cmap = plt.cm.RdYlGn):
fig,ax = plt.subplots()
ANNOTATION_DISTANCE = 5
TRANSPARENCY = 0.8
scatterplot = plt.scatter(x,y,c=colors, s=5, cmap=cmap)