title: matplotlib get_color for subplot
body: <p>I am following the tutorial from here: 
  <a href="https://matplotlib.org/gallery/ticks_and_spines/multiple_yaxis_with_spines.html" rel="noreferrer">https://matplotlib.org/gallery/ticks_and_spines/multiple_yaxis_with_spines.html</a><br>
  However, the example used is for a single plot and I'm currently working with subplots. 
  My version is the following:</p>
  
  <pre><code>    p1 = tr[names['equity']].plot(ax=ax3, linewidth = 0.75)
      axb = ax3.twinx()
      axb.spines["right"].set_position(("axes", 0.5))
      p2 = tr[names[local_rating]].plot(ax=axb, c= 'r', linewidth = 0.75)
      axb.grid(False)
      axb.margins(x=0)
      axc = ax3.twinx()    
      p3 = tr[names['vol']].plot(ax=axc, c = 'g', linewidth = 0.75)
      axc.grid(False)
      axc.margins(x=0)
      ax3.yaxis.label.set_color(p1.get_color())
      axb.yaxis.label.set_color(p2.get_color())
      axc.yaxis.label.set_color(p3.get_color())
  </code></pre>
  
  <p>When I try to do pX.get_color() I get:   </p>
  
  <blockquote>
    <p>AttributeError: 'AxesSubplot' object has no attribute 'get_color'</p>
  </blockquote>
  
  <p>My question is: <strong>what method should I use to recover a subplot's color?</strong> </p>
  
  <p>I'm aware that I could manually set the color to match since it's a small number of instructions, but I'm just wondering if there is another way.</p>
  
  <p>Thanks</p>