Skip to content
Snippets Groups Projects
Commit 7083165a authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

deb msgs only in top-level

parent a4a364ab
No related branches found
No related tags found
1 merge request!1644resolve warning in AccessingSimulationResult
Pipeline #100153 passed
......@@ -85,30 +85,25 @@ def plot(field):
"""
plt.figure(figsize=(12.80, 10.24))
print("Subplot 1")
plt.subplot(2, 2, 1)
bp.plot_histogram(field)
plt.title("Intensity as heatmap")
print("Subplot 2")
plt.subplot(2, 2, 2)
crop = field.crop(-1, 0.5, 1, 1)
bp.plot_histogram(crop)
plt.title("Cropping")
print("Subplot 3")
plt.subplot(2, 2, 3)
noisy = get_noisy_image(field)
reldiff = ba.relativeDifferenceField(noisy, field).npArray()
bp.plot_array(reldiff, intensity_min=1e-03, intensity_max=10)
plt.title("Relative difference")
print("Subplot 4")
plt.subplot(2, 2, 4)
plot_slices(field)
plt.title("Various slicing of 2D into 1D")
print("Layout")
plt.tight_layout()
if __name__ == '__main__':
......@@ -128,4 +123,6 @@ if __name__ == '__main__':
field = result.extracted_field()
print("Plot")
plot(field)
print("Show")
bp.show_or_export()
print("Done")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment