title: Adding a grid when a certain data matches an x ​value
body: <p>I have an data on excel . <a href="https://i.stack.imgur.com/Z0dNx.png" rel="nofollow noreferrer">enter image description here</a> . I filtered some columns and rows from this excel file and wrote this code ;</p>
  <pre><code>import numpy as np
  import pandas as pd
  import seaborn as sns
  import matplotlib.pyplot as plt
  import matplotlib.dates as mdates
  
  
  df=pd.read_excel(&quot;Julian_iski_data_python.xlsx&quot;)
  
  df = df[[&quot;prSM [db]&quot;, &quot;year&quot;, &quot;T(degC)&quot;,&quot;Station&quot;]]
  df = df.loc[df[&quot;prSM [db]&quot;] == 1]
  df = df.loc[df[&quot;Station&quot;].isin([&quot;M8&quot;, &quot;M14&quot;, &quot;M23&quot;, &quot;MY2&quot;])]
  
  fig = plt.figure(figsize=(10,10))
  axes = fig.add_axes([0.04,0.06,0.95,0.91])
  
  sns.scatterplot(data=df, x=&quot;year&quot;, y=&quot;T(degC)&quot;, hue=&quot;Station&quot;,style=&quot;Station&quot;)
  sns.lineplot(data=df, x=&quot;year&quot;, y=&quot;T(degC)&quot;, hue=&quot;Station&quot;,style=&quot;Station&quot;)
  axes.xaxis.set_major_locator(mdates.YearLocator(1))
  axes.set_xlabel(&quot;Time&quot;)
  axes.grid()
  plt.show()
  </code></pre>
  <p>And ı got this graph. <a href="https://i.stack.imgur.com/aNp40.png" rel="nofollow noreferrer">enter image description here</a> . My question is :<br />
  In the graph, I got the x-axis from the column named &quot;year&quot; . and ı also have new_year column. <a href="https://i.stack.imgur.com/PH3WF.png" rel="nofollow noreferrer">enter image description here</a> .  If the year values ​​in the column named &quot;new year&quot; match the &quot;year&quot; on the x-axis of the graph, I want to put a grid there. How can ı do this ?
  If I didn't explain myself well, I would like to explain it with a photo.<a href="https://i.stack.imgur.com/Q1SbV.png" rel="nofollow noreferrer">enter image description here</a></p>