def METHOD_NAME(self, reinitialize=False):
    if hasattr(self, "scene_manager") and self.scene_manager is not None:
        self.scene_manager.scene_type = self.scene_type
        if reinitialize:
            self.scene_manager.init_scene()
        vr = self.view_rect()
        start, end = vr.x(), vr.x() + vr.width()
        self.scene_manager.show_scene_section(start, end, *self._get_sub_path_ranges_and_colors(start, end))
        if self.scene_type == 1:
            self.scene().redraw_legend()
        else:
            self.scene().hide_legend()