Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2855028

Browse files
committed
Fix color normalization in plot types scatter
Adjust the norm limits to include the colors values (between 15 and 80).
1 parent 5b87c98 commit 2855028

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plot_types/basic/scatter_plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# plot
2222
fig, ax = plt.subplots()
2323

24-
ax.scatter(x, y, s=sizes, c=colors, vmin=-100, vmax=0)
24+
ax.scatter(x, y, s=sizes, c=colors, vmin=0, vmax=100)
2525

2626
ax.set(xlim=(0, 8), xticks=np.arange(1, 8),
2727
ylim=(0, 8), yticks=np.arange(1, 8))

0 commit comments

Comments
 (0)