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

prepare for kwargs

parent 1e2fe7f9
No related branches found
No related tags found
1 merge request!763Normalization to maximum value supported in core and applied to ff/pyramid4
......@@ -34,7 +34,7 @@ def save_results(namedResults, name):
class MultiPlot:
def __init__(self, n, ncol):
def __init__(self, n, ncol, **kwargs):
self.n = n
self.ncol = ncol
self.nrow = 1 + (self.n - 1) // self.ncol
......@@ -88,11 +88,11 @@ class MultiPlot:
fontsize=self.fontsize)
def make_plot_row(namedResults, name):
make_plot(namedResults, name, len(namedResults))
def make_plot_row(namedResults, name, **kwargs):
make_plot(namedResults, name, len(namedResults), **kwargs)
def make_plot(namedResults, name, ncol):
def make_plot(namedResults, name, ncol, **kwargs):
"""
Make a plot consisting of one detector image for each Result in results,
plus one common color scale.
......@@ -102,7 +102,7 @@ def make_plot(namedResults, name, ncol):
:param name: Filename for multiplot during save
:param ncol: Number of columns in multiplot
"""
multiPlot = MultiPlot(len(namedResults), ncol)
multiPlot = MultiPlot(len(namedResults), ncol, **kwargs)
# Always the same color scale, to facilitate comparisons between figures.
norm = mpl.colors.LogNorm(1e-8, 1)
......
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