From 5d56288a113aa3aa2e68dbf54f0acde0650bafcb Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Mon, 6 Nov 2023 23:49:51 +0100 Subject: Fixed more SonarCloud complaints. Signed-off-by: Toni Uhlig --- examples/py-machine-learning/keras-autoencoder.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'examples/py-machine-learning/keras-autoencoder.py') diff --git a/examples/py-machine-learning/keras-autoencoder.py b/examples/py-machine-learning/keras-autoencoder.py index 086cf505c..fc3115012 100755 --- a/examples/py-machine-learning/keras-autoencoder.py +++ b/examples/py-machine-learning/keras-autoencoder.py @@ -273,8 +273,7 @@ def plot_worker(shared_shutdown_event, shared_plot_queue): ys2 = [] ys3 = [] ys4 = [] - x = 0 - a = ani.FuncAnimation(fig, plot_animate, fargs=(shared_plot_queue, (ax1, ax2, ax3, ax4), xs, (ys1, ys2, ys3, ys4)), interval=1000, cache_frame_data=False) + ani.FuncAnimation(fig, plot_animate, fargs=(shared_plot_queue, (ax1, ax2, ax3, ax4), xs, (ys1, ys2, ys3, ys4)), interval=1000, cache_frame_data=False) plt.subplots_adjust(left=0.05, right=0.95, top=0.95, bottom=0.05) plt.margins(x=0, y=0) plt.show() -- cgit v1.2.3