From 2144d5913fca1bedde7a04895baa0d86e375c441 Mon Sep 17 00:00:00 2001 From: Hannes Kuchelmeister Date: Tue, 4 May 2021 11:45:23 +0200 Subject: [PATCH] fix missing subplot command --- VotingAnalysis.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/VotingAnalysis.py b/VotingAnalysis.py index f37c60d..faf063a 100644 --- a/VotingAnalysis.py +++ b/VotingAnalysis.py @@ -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)