class_docstr: Renders customizable statistics on top of event logs.
  
  This renderer provides a central rendering functionality for event log data. Elementary customizability
  is offered (e.g. simple aggregation etc.). For more complex operations with the data, it is advised
  to work with the TSV event logs directly.
class_docstr_tok: ["Renders","customizable","statistics","on","top","of","event","logs",".","This","renderer","provides","a","central","rendering","functionality","for","event","log","data",".","Elementary","customizability","is","offered","(","e.g",".","simple","aggregation","etc.",")",".","For","more","complex","operations","with","the","data",",","it","is","advised","to","work","with","the","TSV","event","logs","directly","."]
docstr: Close the stats figure if one has been created.
docstr_tok: ["Close","the","stats","figure","if","one","has","been","created","."]
code: def close(self):
      """Close the stats figure if one has been created."""
      if self.figure is not None:
          plt.figure(self.figure.number)
          plt.close()
  
file_path: maze/maze/core/rendering/events_stats_renderer.py
imports: import re
  from typing import Optional, Callable, Union
  import matplotlib.pyplot
  import pandas
  import seaborn
  from maze.core.log_events.episode_event_log import EpisodeEventLog
label_desc: Use image node_id 4 for calling the EventStatsRenderer obj's underlying member method code with example usage: obj.close() without return types