plotting behaviour adapted for kern and mrd

This commit is contained in:
Max Zwiessele 2013-06-04 18:19:14 +01:00
parent a32f9bf9dd
commit cadf822292
2 changed files with 23 additions and 19 deletions

View file

@ -46,10 +46,11 @@ class kern(parameterised):
parameterised.__init__(self)
def plot_ARD(self, ax=None):
def plot_ARD(self, fignum=None, ax=None):
"""If an ARD kernel is present, it bar-plots the ARD parameters"""
if ax is None:
ax = pb.gca()
fig = pb.figure(fignum)
ax = fig.add_subplot(111)
for p in self.parts:
if hasattr(p, 'ARD') and p.ARD:
ax.set_title('ARD parameters, %s kernel' % p.name)