mirror of
https://github.com/13hannes11/UU_NCML_Project.git
synced 2024-09-03 20:50:59 +02:00
fix missing subplot command
This commit is contained in:
@@ -136,7 +136,8 @@ def compute_heatmap(weight, grid_height, grid_width):
|
|||||||
|
|
||||||
return heatmap
|
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
|
ANNOTATION_DISTANCE = 5
|
||||||
TRANSPARENCY = 0.8
|
TRANSPARENCY = 0.8
|
||||||
scatterplot = plt.scatter(x,y,c=colors, s=5, cmap=cmap)
|
scatterplot = plt.scatter(x,y,c=colors, s=5, cmap=cmap)
|
||||||
|
|||||||
Reference in New Issue
Block a user