I want to connect some points to understand the shape of the data. My code is the following
import numpy as np
import matplotlib.pyplot as plt
from random import randint, uniform,random
import random
import math
FO_1_NSGA=[1737903,1775238,1745292,1753900,1739432,1765932]
FO_2_NSGA=[1250000,1212665,1235970,1224003,1242687,1216719]
plt.scatter(FO_1_NSGA,FO_2_NSGA,marker='s',c="red",linewidths=True,label="NSGA",edgecolors='blue')
plt.plot(FO_1_NSGA,FO_2_NSGA)
plt.grid()
plt.xlabel("Costo Total de Transporte (CTT)")
plt.ylabel("Costo Total por Demanda Insatisfecha (CDIT)")
plt.legend(loc=0)
plt.show()
The output is the following (which is right)
I want to connect these points to see the exponential decreasing behavior of my variables, but when I try to do that adding the following code
plt.plot(FO_1_NSGA,FO_2_NSGA)
which is clearly not right... any ideas?.