リファレンスに説明があります。
matplotlib.pyplot.scatter — Matplotlib 3.1.2 documentation
In addition to the above described arguments, this function can take a data keyword argument. If such a data argument is given, the following arguments are replaced by data[<arg>]:
All arguments with the following names: 'c', 'color', 'edgecolors', 'facecolor', 'facecolors', 'linewidths', 's', 'x', 'y'.
Objects passed as data must support item access (data[<arg>]) and membership test (<arg> in data).
訳すと
この関数は、上記で説明した引数に加えて、キーワード引数 data を取ることができます。
data が与えられた場合、以下の引数は、data[<arg>]に置き換えられます。
'c'、'color'、'edgeecolors'、'facecolor'、'facecolors'、'lineewidths'、's'、'x'、'y'
データとして渡されるオブジェクトは、(data[<arg>])と(<arg> in data)をサポートしていなければなりません。
つまり、
python
1plt.scatter('a', 'd', c='c', s=100,data=data)
は
python
1plt.scatter(data['a'], data['d'], c=data['c'], s=100)
と置き換えて解釈されます。
この説明で伝わりますでしょうか?
不明な点があれば、コメントしてください。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。