class_docstr: Context to setup the environment within with the plot is built
  
  Parameters
  ----------
  plot :
      ggplot object to be built within the context.
      exits.
  show :
      Whether to show the plot.
docstr: Exit matplotlib & pandas environments
docstr_tok: ["Exit","matplotlib","&","pandas","environments"]
code: def __exit__(self, exc_type, exc_value, exc_traceback):
      """
      Exit matplotlib & pandas environments
      """
      import matplotlib.pyplot as plt
  
      if exc_type is None:
          if self.show:
              plt.show()
          else:
              plt.close(self.plot.figure)
      else:
          # There is an exception, close any figure
          if hasattr(self.plot, "figure"):
              plt.close(self.plot.figure)
  
      self.rc_context.__exit__(exc_type, exc_value, exc_traceback)
      self.pd_option_context.__exit__(
          exc_type, exc_value, exc_traceback
      )
      delattr(self.plot.theme, "_targets")
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  import pandas
label_desc: Use image node_id 3 for calling the plot_context obj's underlying member method code with example usage: obj.__exit__(exc_type, exc_value, exc_traceback) without return types