Я учусь рисовать скаттер с помощью matplotlib. Тем не менее, есть ошибка, и, похоже, она связана с аргументом color. Кто-нибудь может объяснить мне ошибку? Я погуглил, но ответа не нашел. Заранее спасибо.
xActA = range(10)
yActA = np.random.randn(10)
xActQ = range(10)
yActQ = np.random.randn(10)
xRa = np.random.randn(10)
yRa = np.random.randn(10)
f1 = figure(1)
scatter(xActA, yActA, c ='b', marker = 'o', facecolors = True, label = 'Answers')
scatter(xActQ, yActQ, c ='r', marker = 'o', facecolors = True, label = 'Questions')
xscale('log')
yscale('log')
title('User activity')
xlabel('Number of posts')
ylabel('Number of users')
legend()
f1.show()
f1.savefig('figure7_test.png')