How to specify different color for a specific year value range in a single figure? (Python)
I've a time-series dataset, from 1992-2017. I can set a color for the whole data dots but what I want is to set desired color for specific year range. For Example; from 1992-1995 "Blue", from 1995-2005 "Red" etc. How can we do that? Dataset has 2 columns; year and value. import numpy as np import pandas as pd from scipy import stats from sklearn import linear_model from matplotlib import pyplot as plt import pylab import matplotlib.patches as mpatches import matplotlib.pyplot as plt import seaborn as sns from sklearn.linear_model import LinearRegression Atlantic = pd.read_csv('C:\\AtlanticEnd