plot merge

This commit is contained in:
Max Zwiessele 2014-02-21 12:31:01 +00:00
commit 34d9f90d92
6 changed files with 62 additions and 80 deletions

View file

@ -95,7 +95,7 @@ def plot_fit(model, plot_limits=None, which_data_rows='all',
#add error bars for uncertain (if input uncertainty is being modelled)
if hasattr(model,"has_uncertain_inputs") and model.has_uncertain_inputs():
ax.errorbar(model.X[which_data_rows, free_dims], model.Y[which_data_rows, 0],
ax.errorbar(model.X[which_data_rows, free_dims], model.Y[which_data_rows, which_data_ycols],
xerr=2 * np.sqrt(model.X_variance[which_data_rows, free_dims]),
ecolor='k', fmt=None, elinewidth=.5, alpha=.5)