Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug/4251-selecting-section-when-highlight-tracks-not-assigned-to-flow-is-slow #472

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions OTAnalytics/plugin_ui/visualization/visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,12 +371,19 @@ def _create_highlight_tracks_not_assigned_to_flows_plotter(
flow_state,
self._track_repository,
)
return self._create_track_geometry_plotter(
flows_filter,
self._color_palette_provider,
alpha=ALPHA_HIGHLIGHT_TRACKS_NOT_ASSIGNED_TO_FLOWS,
enable_legend=False,
cached_plotter = CachedPlotter(
self._create_track_geometry_plotter(
flows_filter,
self._color_palette_provider,
alpha=ALPHA_HIGHLIGHT_TRACKS_NOT_ASSIGNED_TO_FLOWS,
enable_legend=False,
),
[],
)
invalidate = cached_plotter.invalidate_cache
self._event_repository.register_observer(invalidate)
flow_state.selected_flows.register(invalidate)
return cached_plotter

def _get_event_data_provider_class_filter(self) -> PandasDataFrameProvider:
if not self._event_data_provider_class_filter:
Expand Down
Loading