         if periods is None:             periods = self._periods         if not isinstance(periods, Iterable):             periods = (periods,)         periods = tuple(periods)         for p in periods:             if p in self._periods:                 pl.plot_