Commit 434ada9d authored by Philipp Arras's avatar Philipp Arras
Browse files

Support MultiField plotting

parent 0a97a9ae
Pipeline #54995 failed with stages
in 5 minutes and 54 seconds
...@@ -482,6 +482,17 @@ class Plot(object): ...@@ -482,6 +482,17 @@ class Plot(object):
alpha: float or list of floats alpha: float or list of floats
Transparency value. Transparency value.
""" """
from .multi_domain import MultiDomain
if isinstance(f.domain, MultiDomain):
for kk in f.domain.keys():
mykwargs = kwargs.copy()
if 'title' in kwargs:
mykwargs['title'] = "{} {}".format(kk, kwargs['title'])
mykwargs['title'] = "{}".format(kk)
self._plots.append(f) self._plots.append(f)
self._kwargs.append(kwargs) self._kwargs.append(kwargs)
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