I have plotted points from 4 arrays in the following manner. I have plotted them in the same figure by calling plt.plot twice.
import matplotlib.pyplot as plt
plt.plot(ar1,ar2,'b^',label='classical')
plt.plot(ar3,ar4,'go',label='customized')
Now I want to plot the points with a color scale according to a variable sum1 and sum2. sum1 is a reference for arr1 and arr2. sum2 is a reference for arr3 and arr4. How big is the value of sum1(for arr1 and arr2) or sum2(for arr3 and arr4) is going to decide the color of the points that are plotted with the arrays. Preferrable on a color scale from red to green, the points have to be plotted. Now I have plotted the values only with 2 colors (blue and green) as written in the code above. Now I have to plot them referring to the sum values and on a color scale from red to green. How should I proceed?
