class_docstr: The visual test case class ensures that all tests inside of the class
  can execute image similarity tests inside of a clean matplotlib global
  figure.
docstr: Before a visual test case method is run, ensure that the previous
  figure is closed and the current axes are cleared.
  
  See: https://docs.pytest.org/en/latest/xunit_setup.html
docstr_tok: ["Before","a","visual","test","case","method","is","run",",","ensure","that","the","previous","figure","is","closed","and","the","current","axes","are","cleared",".","See",":","https",":","\/\/docs.pytest.org\/en\/latest\/xunit_setup.html"]
code: def setup_method(self):
      """
      Before a visual test case method is run, ensure that the previous
      figure is closed and the current axes are cleared.
  
      See: https://docs.pytest.org/en/latest/xunit_setup.html
      """
      # Reset the matplotlib environment
      plt.cla()  # clear current axis
      plt.clf()  # clear current figure
      plt.close("all")  # close all existing plots
  
      # Travis-CI does not have san-serif so ensure standard fonts are used.
      # Note that this must be set before each test otherwise it will be reset by
      # the Yellowbrick styles.
      mpl.rcParams["font.family"] = "DejaVu Sans"
  
imports: import os
  import sys
  import inspect
  import matplotlib
  import matplotlib.pyplot
  from matplotlib import ticker
  from matplotlib.testing.compare import compare_images
  from yellowbrick.exceptions import ImageComparisonFailure
label_desc: Use image node_id 1 for calling the VisualTestCase obj's underlying member method code with example usage: obj.setup_method() without return types