title: How do I overlay different kinds of graph in Seaborn?
body: <p>I'm trying to get two graphs into the same fig, using different y-axes, and it works fine when I use the same kind of plot (two barplots or two lineplots, for example). Using this code</p>
  
  <pre><code>fig, graph = plt.subplots(figsize=(75,3))
  sns.lineplot(x='YearBuilt',y='SalePrice',ax=graph,data=processed_data,color='red')
  graph2 = graph.twinx()
  sns.lineplot(x='YearBuilt', y='AvgOverallQual',ax=graph2,data=processed_data,color='teal')
  </code></pre>
  
  <p>I obtain this</p>
  
  <p><a href="https://i.stack.imgur.com/2hKTj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2hKTj.png" alt="enter image description here"></a></p>
  
  <p>But when I try to use different kinds, like this:</p>
  
  <pre><code>fig, graph = plt.subplots(figsize=(75,3))
  sns.barplot(x='YearBuilt',y='SalePrice',ax=graph,data=processed_data,color='red')
  graph2 = graph.twinx()
  sns.lineplot(x='YearBuilt', y='AvgOverallQual',ax=graph2,data=processed_data,color='teal')
  </code></pre>
  
  <p>my graph looks like:</p>
  
  <p><a href="https://i.stack.imgur.com/1a4hS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1a4hS.png" alt="enter image description here"></a></p>
  
  <p>How do I overlay different kinds of graph in Seaborn?</p>