plotting debug

This commit is contained in:
Max Zwiessele 2013-04-15 15:58:33 +01:00
parent c63beddcf0
commit 37f94310d5
3 changed files with 30 additions and 3 deletions

View file

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