LoveThinkinghard / MCM-2019-Problem-C-Solution

This is our solution to MCM 2019 problem C. Spread maps (gif), codes and thinking behind the model are provided
MIT License
13 stars 2 forks source link

如何根据数值的大小改变点的大小 #1

Open honor-pan opened 5 years ago

honor-pan commented 5 years ago

你好!我想请问一下博主,怎样根据数值的大小来改变这些散点的大小。

LoveThinkinghard commented 5 years ago

如果你指的是程序方面的问题的话,我用python里的matplotlib.pyplot.scatter()函数画的图,改变参数s即可改变点的大小,代码像这样:

import matplotlib.pyplot as plt
plt.sactter(x=[1, 2, 3], y=[1, 2, 3], s=[1, 2, 3])

figure_1