@@ -119,9 +119,7 @@ def plot_housekeeping_variable(
119119 format_time_axis (ax )
120120 pretty_ax (ax , grid = "y" )
121121 fig_ = save_fig (fig )
122- return MonitoringVisualization (
123- fig_ .bytes , variable , Dimensions (fig_ .width , fig_ .height )
124- )
122+ return MonitoringVisualization (fig_ .bytes , variable , Dimensions (fig , [ax ]))
125123
126124
127125def monitor_background (
@@ -212,9 +210,7 @@ def plot_background_profile(
212210 format_time_axis (ax )
213211 pretty_ax_2d (ax )
214212 fig_ = save_fig (fig )
215- return MonitoringVisualization (
216- fig_ .bytes , variable , Dimensions (fig_ .width , fig_ .height )
217- )
213+ return MonitoringVisualization (fig_ .bytes , variable , Dimensions (fig , [ax ]))
218214
219215
220216def plot_background_variance (
@@ -227,9 +223,7 @@ def plot_background_variance(
227223 format_time_axis (ax )
228224 pretty_ax (ax , grid = "y" )
229225 fig_ = save_fig (fig )
230- return MonitoringVisualization (
231- fig_ .bytes , variable , Dimensions (fig_ .width , fig_ .height )
232- )
226+ return MonitoringVisualization (fig_ .bytes , variable , Dimensions (fig , [ax ]))
233227
234228
235229def plot_time_averaged_background_profile (
@@ -249,9 +243,7 @@ def plot_time_averaged_background_profile(
249243
250244 pretty_ax (ax , grid = "y" )
251245 fig_ = save_fig (fig )
252- return MonitoringVisualization (
253- fig_ .bytes , variable , Dimensions (fig_ .width , fig_ .height )
254- )
246+ return MonitoringVisualization (fig_ .bytes , variable , Dimensions (fig , [ax ]))
255247
256248
257249def monitor_signal (
@@ -352,9 +344,7 @@ def plot_radial_velocity_histogram(
352344 ax .set_ylabel ("Count" )
353345 pretty_ax (ax , grid = "both" )
354346 fig_ = save_fig (fig )
355- return MonitoringVisualization (
356- fig_ .bytes , variable , Dimensions (fig_ .width , fig_ .height )
357- )
347+ return MonitoringVisualization (fig_ .bytes , variable , Dimensions (fig , [ax ]))
358348
359349
360350def plot_signal_radial_velocity (
@@ -370,6 +360,4 @@ def plot_signal_radial_velocity(
370360 ax .set_ylabel ("Radial velocity" )
371361 pretty_ax (ax )
372362 fig_ = save_fig (fig )
373- return MonitoringVisualization (
374- fig_ .bytes , variable , Dimensions (fig_ .width , fig_ .height )
375- )
363+ return MonitoringVisualization (fig_ .bytes , variable , Dimensions (fig , [ax ]))
0 commit comments