title: multi-line plotting in Python
body: <p>So I want to plot a multi-line plot like this: <a href="https://i.stack.imgur.com/9lEU7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9lEU7.png" alt="enter image description here" /></a></p>
  <p>Now I am trying to do it myself, but the ethnic groups like White, Black, Asian etc etc are in a column under the heading of &quot;Ethnicity&quot;</p>
  <p>This is what my data looks like after filtering from the original dataframe:</p>
  <pre><code>plt1_data = df1.loc[(df1.Region == &quot;All&quot;) &amp; (df1.Age == &quot;All&quot;) &amp; (df1.Sex == &quot;All&quot;),[&quot;Ethnicity&quot;,&quot;Value&quot;,&quot;Time&quot;]]
                         Ethnicity Value  Time
  12                           All   4.8  2004
  192                        Asian   9.4  2004
  372                  Asian Other   9.3  2004
  552                        Black  12.8  2004
  732                       Indian   6.9  2004
  ...                          ...   ...   ...
  34212  Pakistani and Bangladeshi   8.4  2018
  34392                    Unknown   4.1  2018
  34572                      White   3.7  2018
  34752              White British   3.8  2018
  34932                White Other   3.4  2018
  </code></pre>
  <p>And this is the code that I am using to get a graph similar to one above:</p>
  <pre><code>plt.figure(figsize=(20,10))
  plt.plot( 'Time', 'Ethnicity', data=plt1_data, color='red')
  plt.plot( 'Time', 'Ethnicity', data=plt1_data, color='yellow')
  plt.plot( 'Time', 'Ethnicity', data=plt1_data, color='magenta')
  plt.plot( 'Time', 'Ethnicity', data=plt1_data, color='blue')
  plt.legend()
  </code></pre>
  <p>But it doesnt work well and gives me the following graph: <a href="https://i.stack.imgur.com/1dVut.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1dVut.png" alt="enter image description here" /></a></p>
  <p>So I need help with fixing my graph.
  Highly appreciate it!</p>
  <p>Update graph: <a href="https://i.stack.imgur.com/F4kyg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/F4kyg.png" alt="enter image description here" /></a></p>
  <p>Code for Update graph:</p>
  <pre><code>plt.figure(figsize=(30,30))
  for cat, df_cat in plt1_data.groupby('Ethnicity'):
      plt.plot(df_cat['Time'],df_cat['Value'], label=cat)
  plt.legend()
  </code></pre>