Commit 660d4efd authored by Marius Isken's avatar Marius Isken
Browse files

bugfix plot

parent 854bc564
......@@ -189,17 +189,19 @@ class GrondModel(object):
def draw_sequence_figures(model, plt, misfit_cutoff=None, sort_by='misfit'):
problem = model.problem
npar = problem.nparameters
ndep = problem.ndependants
imodels = num.arange(model.nmodels)
bounds = problem.get_parameter_bounds() + problem.get_dependant_bounds()
bounds = problem.get_parameter_bounds()
if ndep > 0:
bounds += problem.get_dependant_bounds()
xref = problem.get_xref()
xs = model.xs
npar = problem.nparameters
ndep = problem.ndependants
gms = problem.global_misfits(model.misfits)
gms_softclip = num.where(gms > 1.0, 0.2 * num.log10(gms) + 1.0, gms)
......@@ -1434,7 +1436,8 @@ def draw_fits_figures(ds, model, plt):
(1, rel_c, light(misfit_color, 0.5), misfit_color)]:
bar = patches.Rectangle(
(1.0 - rw * sw, 1.0 - (ih + 1) * sh + ph), rw * sw, sh - 2 * ph,
(1.0 - rw * sw, 1.0 - (ih + 1) * sh + ph),
rw * sw, sh - 2 * ph,
facecolor=facecolor, edgecolor=edgecolor,
zorder=10,
transform=axes.transAxes, clip_on=False)
......
......@@ -265,7 +265,7 @@ class Problem(Object):
return num.array(out, dtype=num.float)
def get_dependant_bounds(self):
return []
return None
def raise_invalid_norm_exponent(self):
raise GrondError('invalid norm exponent' % self.norm_exponent)
......
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