fhswf / MLPro

MLPro - The Integrative Middleware Framework for Standardized Machine Learning in Python
https://mlpro.readthedocs.io/
Apache License 2.0
13 stars 5 forks source link

Bug: Missing plot refresh of tasks sharing the Matplotlib figure with the prior task #1076

Closed detlefarend closed 3 weeks ago

detlefarend commented 3 weeks ago

1 Describe the bug If subsequent tasks in a workflow share the same figure (MyTask.C_PLOT_STANDALONE = FALSE), the following behavior occurs:

1) Task 1 (Owner of the figure): plots and refreshes it 2) Task 2 (guest plot): plots but doesn't refresh it since it is not the owner of the figure

The output of task 2 is shown next time when task 1 refreshes the plot.

The causing code is implemented in the class Plottable.update_plot():

2024-10-30_11-59

2 To Reproduce ...

3 Expected behavior The best would be to refresh the figure whenever the last task in the plot chain updates the plot.

4 Screenshots If applicable, add screenshots to help explain your problem.

5 Additional Information

5.1 Operating System