fixed regression tests, file was archived

This commit is contained in:
2024-03-13 17:20:01 +01:00
parent 45b71789c8
commit 2efbf3a64a
3 changed files with 10 additions and 8 deletions

View File

@@ -164,6 +164,8 @@ def plot_detector_image(image_data, title=None, comment=None, ax=None, rois=None
- rois: draw a rectangular patch for the given roi(s)
- norms: [min, max] values for colormap
- log_colorscale: True for a logarithmic colormap
- title: Title of the plot
- show_legend: True if the legend box should be drawn
"""
im = image_data
@@ -196,12 +198,13 @@ def plot_detector_image(image_data, title=None, comment=None, ax=None, rois=None
[roi.left, roi.bottom],
roi.width,
roi.height,
linewidth=3,
linewidth=2,
edgecolor=f"C{i}",
facecolor="none",
label=roi.name,
)
ax.add_patch(rect)
if comment is not None:
description = f"{comment}\nmean: {mean:.2e},\nstd: {std:.2e}"
else: