From 46dc4bf44d1b24154af9ada62c18747db2736e08 Mon Sep 17 00:00:00 2001 From: Tiago de Freitas Pereira Date: Wed, 27 Sep 2023 09:22:30 +0200 Subject: [PATCH] Returned the fig object while using the static plot --- neurokit2/ppg/ppg_plot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/neurokit2/ppg/ppg_plot.py b/neurokit2/ppg/ppg_plot.py index b77905e4d9..bf4ac19f71 100644 --- a/neurokit2/ppg/ppg_plot.py +++ b/neurokit2/ppg/ppg_plot.py @@ -117,6 +117,8 @@ def ppg_plot(ppg_signals, info=None, static=True): ax=ax2, ) + return fig + else: try: import plotly.graph_objects as go