code: def initialize_plot(self, ranges=None):
          
          # Get element key and ranges for frame
          fig = self.generate_plot(self.keys[-1], ranges)
          self.drawn = True
          return fig
docs: Initializes a new plot object with the last available frame.