title: How can I apply seaborn.scatterplot(style) in matplotlib module?
body: <p>I'm trying to make this plot just use matplotlib module. I can make x, y legends but I have no idea how can I apply seaborn.scatterplot(style) in matplotlib module. Can anyone help me how can I make this plot??</p>
  <p>The under plot code is this:</p>
  <pre><code>import matplotlib.pyplot as plt
  import seaborn as sns
  
  fmri = sns.load_dataset('fmri')
  
  fmri.head()
  
  sns.scatterplot(x = 'timepoint', y = 'signal', hue = 'region', style = 'event', data = fmri)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/Kxy9n.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Kxy9n.png" alt="enter image description here" /></a></p>
  <p>And This is what I'm trying to make code</p>
  <pre><code>import matplotlib.pyplot as plt
  import matplotlib.patches as mpatches 
  
  fig, ax = plt.subplots()
  
  colors = {'parietal' : 'tab:blue', 'frontal' : 'orange'}
  
  scatter = ax.scatter(x = fmri['timepoint'],y = fmri['signal'],c = fmri['region'].apply(lambda x: colors[x]),s = 15)
  
  parietal = mpatches.Patch(color = 'tab:blue',label = 'parietal')
  
  frontal = mpatches.Patch(color = 'orange',
                           label = 'frontal')
  
  plt.xlabel('timepoint')
  
  plt.ylabel('signal')
  
  plt.legend(handles = [parietal, frontal])
  </code></pre>
  <p><a href="https://i.stack.imgur.com/fDdca.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fDdca.png" alt="enter image description here" /></a></p>