如何获得matplotlib.pyplot.scatter中默认使用的蓝色阴影?在给出关键字参数时matplotlib.pyplot.scatter
,它会给出更深的蓝色阴影.在matplotlib.pyplot.scatter的这个文档中,它说默认值应该是'b',但它看起来不同.
见下面的例子:
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
ax.scatter(-1, 0)
ax.text(-1, 0, 'Default blue')
ax.scatter(1, 0, c='b')
ax.text(1, 0, 'Darker blue')
ax.set_xlim(-2, 2)
Run Code Online (Sandbox Code Playgroud)
我正在使用Python 3.5和Matplotlib 2.0.0.我之所以这样问,是因为我想在逐一绘制一些点时使用相同的蓝色c='b'
.