# plot point color change

How do change the plot point color so that I can tell the difference between my three different equations? Here is what I have so far:

S = []
I = []
R = []

S.append(100000)
I.append(100)
R.append(0)

beta = 100
gamma = .4
lamda = 5e-006
mu = .001

i = 0
while(i<100):
R.append(R[i] + (-mu * R[i] + gamma * I[i]))
I.append(I[i] + (-mu * I[i] + lamda * S[i] * I[i] - gamma * I[i]))
S.append(S[i] + (beta - mu * S[i] - lamda * S[i] * I[i]))

i = i+1

N=range(1,100)

A = S
AN=zip(N,A)

B = I
BN=zip(N,B)

C = R
RN = zip(N,R)

plot(point(BN), legend_label = 'S(t)', color = 'green')

edit retag close merge delete

But ... you already figured it out? color='green' is exactly what you do.

( 2017-01-15 05:41:39 +0200 )edit

Sort by ยป oldest newest most voted

You can concatenate graphics objects:

G = Graphics()
G += points(AN, legend_label = 'AN', color = 'green')
G += points(BN, legend_label = 'S(t)', color = 'blue')
G += points(RN, legend_label = 'RN', color = 'red')
G.show()

more