Commit 451a6031 authored by Anton Akhmerov's avatar Anton Akhmerov

skip callable parameters in spectrum title

Closes #232.
We can further improve on this behavior if we provide a useful class of
callables that can efficiently represent itself in printed form, however this
change is an immediate improvement of plot quality.
parent be09a8ac
Pipeline #14398 failed with stages
in 32 minutes and 23 seconds
......@@ -1519,7 +1519,13 @@ def spectrum(syst, x, y=None, params=None, mask=None, file=None,
ax.set_title(', '.join('{} = {}'.format(*kv) for kv in params.items()))
', '.join(
'{} = {}'.format(key, value)
for key, value in params.items()
if not callable(value)
fig = None
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment