code: def stack_plot(self, *args, **kwargs):
          
          df = self.as_pandas(with_metadata=True)
          ax = plotting.stack_plot(df, *args, **kwargs)
          return ax
docs: Plot timeseries stacks of existing data
  
          see pyam.plotting.stack_plot() for all available options