title: How to smooth lines in a figure in python?
body: <p>So with the code below I can plot a figure with 3 lines, but they are  angular. Is it possible to smooth the lines? </p>
  
  <pre><code>import matplotlib.pyplot as plt
  import pandas as pd
  
  # Dataframe consist of 3 columns
  df['year'] = ['2005, 2005, 2005, 2015, 2015, 2015, 2030, 2030, 2030']
  df['name'] = ['A', 'B', 'C', 'A', 'B', 'C', 'A', 'B', 'C']
  df['weight'] = [80, 65, 88, 65, 60, 70, 60, 55, 65]
  fig,ax = plt.subplots()
  
  # plot figure to see how the weight develops through the years
  for name in ['A','B','C']:
      ax.plot(df[df.name==name].year,df[df.name==name].weight,label=name)
  
  ax.set_xlabel("year")
  ax.set_ylabel("weight")
  ax.legend(loc='best')
  </code></pre>