fixed regression tests, file was archived
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user