Skip to content

Commit

Permalink
Bug: Missing plot refresh of tasks sharing the Matplotlib figure with…
Browse files Browse the repository at this point in the history
… the prior task #1076
  • Loading branch information
detlefarend committed Oct 30, 2024
1 parent 65112d0 commit 44b5477
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
7 changes: 3 additions & 4 deletions src/mlpro/bf/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,10 @@
## -- - New property Plottable.color
## -- - Class PlotSettings: removed parameter p_plot_depth
## -- 2024-07-08 2.16.1 SY Add MinVal for undefined range in DataPlotting
## -- 2024-10-30 2.17.0 DA Extensions on classes PlotSettings, Plottable:
## -- - Class PlotSettings: new methods register(), unregister(),
## -- 2024-10-30 2.17.0 DA - Class PlotSettings: new methods register(), unregister(),
## -- is_last_registered()
## -- - Class Plottable: extensions on init_plot(), update_plot()
## -- Refactoring: removed par p_force from Plottable.refresh()
## -- - Refactoring: removed par p_force from Plottable.refresh()
## -------------------------------------------------------------------------------------------------

"""
Expand Down Expand Up @@ -719,7 +718,7 @@ def remove_plot(self, p_refresh:bool = True):
except:
return

# 2 Call _remove_plot method of current view
# 2 Call _remove_plot method of current view
view = self._plot_settings.view
self._plot_methods[view][2]()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
## -- 2023-01-09 1.0.0 DA Creation
## -- 2023-04-10 1.1.0 DA Refactoring after changes on class OAScenario
## -- 2023-05-20 1.1.1 DA Registered handler of boundary detector to window
## -- 2024-10-30 1.1.2 DA Bugfix
## -------------------------------------------------------------------------------------------------

"""
Ver. 1.1.1 (2023-05-20)
Ver. 1.1.2 (2024-10-30)
This module is an example of adaptive normalization of streaming data using MinMax normalizer. To
this regard, an online-adadptive custom scenario is set up. It combines a native 10-dimensional
Expand Down Expand Up @@ -95,7 +96,7 @@ def _setup(self, p_mode, p_ada: bool, p_visualize: bool, p_logging):
# 2.2.3 Boundary detector
task_bd = BoundaryDetector( p_name='Chain 2D, Task T3',
p_ada=True,
p_visualize=True,
p_visualize=p_visualize,
p_logging=p_logging )

task_window.register_event_handler( p_event_id=RingBuffer.C_EVENT_DATA_REMOVED, p_event_handler=task_bd.adapt_on_event )
Expand Down Expand Up @@ -141,7 +142,7 @@ def _setup(self, p_mode, p_ada: bool, p_visualize: bool, p_logging):
# 2.3.3 Boundary detector
task_bd = BoundaryDetector( p_name='Chain 3D, Task T3',
p_ada=True,
p_visualize=True,
p_visualize=p_visualize,
p_logging=p_logging,
p_window=task_window )

Expand Down Expand Up @@ -188,7 +189,7 @@ def _setup(self, p_mode, p_ada: bool, p_visualize: bool, p_logging):
# 2.5.3 Boundary detector
task_bd = BoundaryDetector( p_name='Chain nD, Task T3',
p_ada=True,
p_visualize=True,
p_visualize=p_visualize,
p_logging=p_logging,
p_window=task_window )

Expand Down

0 comments on commit 44b5477

Please sign in to comment.