title: How to split a line graph into subplots in Python?
body: <p>Currently I have a line plot that graphs everything together:</p>
  
  <pre class="lang-py prettyprint-override"><code>import seasborn as sns
  sns.lineplot(data=years_total, x='fyDeclared', y='count', hue='incidentType')
  </code></pre>
  
  <p>Which creates this graph fine</p>
  
  <p><a href="https://i.stack.imgur.com/tN4E0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tN4E0.png" alt="enter image description here"></a></p>
  
  <p>However, I am looking to split each category into its own subplot. I've tried this by</p>
  
  <pre class="lang-py prettyprint-override"><code>f, axes =  plt.subplots(3, 2, figsize=(12, 6), sharex=True, sharey=True)
  
  sns.lineplot(data=years_total, x='fyDeclared', y='count', hue='incidentType' == 'Tornado', ax=axes[0,0], legend=False)
  sns.lineplot(data=years_total, x='fyDeclared', y='count', hue='incidentType' == 'Flood', ax=axes[0,1], legend=False)
  sns.lineplot(data=years_total, x='fyDeclared', y='count', hue='incidentType' == 'Fire', ax=axes[1,0], legend=False)
  sns.lineplot(data=years_total, x='fyDeclared', y='count', hue='incidentType' == 'Hurricane', ax=axes[1,1], legend=False)
  sns.lineplot(data=years_total, x='fyDeclared', y='count', hue='incidentType' == 'Severe Storm(s)', ax=axes[2,0], legend=False)
  sns.lineplot(data=years_total, x='fyDeclared', y='count', hue='incidentType' == 'Snow', ax=axes[2,1], legend=False)
  </code></pre>
  
  <p>But it doesn't work as I intend. It seems to be repeating the same graph over each time</p>
  
  <p><a href="https://i.stack.imgur.com/2tV9h.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2tV9h.png" alt="enter image description here"></a></p>
  
  <p>I am simply looking to split each of the line graphs in the original plot to its own subplot, but I'm not quite sure what I'm doing wrong.</p>
  
  <p>Also as a side note, is there a better, more intricate way to plot each sub plot without literally copy and pasting for each different category?</p>