class_docstr: Test using matplotlib styling to modify look of graphic.
class_docstr_tok: ["Test","using","matplotlib","styling","to","modify","look","of","graphic","."]
docstr: Test setting rcParams modifies style for draw_mpl(circuit, style="rcParams").
docstr_tok: ["Test","setting","rcParams","modifies","style","for","draw_mpl","(","circuit",",","style=","''","rcParams","''",")","."]
code: def test_rcparams(self):
      """Test setting rcParams modifies style for draw_mpl(circuit, style="rcParams")."""
  
      rgba_red = (1, 0, 0, 1)
      rgba_green = (0, 1, 0, 1)
      plt.rcParams["patch.facecolor"] = rgba_red
      plt.rcParams["lines.color"] = rgba_green
  
      _, ax = qml.draw_mpl(circuit1, style="rcParams")(1.23, 2.34)
  
      assert ax.patches[0].get_facecolor() == rgba_red
      assert ax.patches[1].get_facecolor() == rgba_red
  
      for l in ax.lines[
          :-1
      ]:  # final is fancy arrow, has different styling
          assert l.get_color() == rgba_green
  
      qml.drawer.use_style("black_white")
      plt.close()
  
imports: import pytest
  import pennylane
label_desc: Use image node_id 1 for calling the TestMPLIntegration obj's underlying member method code with example usage: obj.test_rcparams() without return types