code: def add_state_segments(self, *args, **kwargs):
          
          warnings.warn('add_state_segments() was renamed add_segments_bar(), '
                        'this warning will result in an error in the future',
                        DeprecationWarning)
          return self.add_segments_bar(*args, **kwargs)
docs: DEPRECATED: use :meth:`Plot.add_segments_bar`