diff --git a/README.md b/README.md index 5af8b3b..fd7aa7f 100644 --- a/README.md +++ b/README.md @@ -35,3 +35,4 @@ See the [CONTRIBUTORS](https://github.com/wichmann-lab/python-psignifit/blob/mas ## License and COPYRIGHT See the [COPYRIGHT](https://github.com/wichmann-lab/python-psignifit/blob/master/COPYRIGHT) file + diff --git a/psignifit/psigniplot.py b/psignifit/psigniplot.py index 7b445b3..0991743 100644 --- a/psignifit/psigniplot.py +++ b/psignifit/psigniplot.py @@ -669,7 +669,7 @@ def plot_posterior_samples( # Plot the samples from the posterior sigmoid = result.configuration.make_sigmoid() - x = np.linspace(0.001, 0.01, num=1000) + x = np.linspace(result.data[:, 0].min(), result.data[:, 0].max(), num=1000) for idx in range(n_samples): y = sigmoid( x, @@ -678,7 +678,7 @@ def plot_posterior_samples( gamma=params_samples['gamma'][idx], lambd=params_samples['lambda'][idx], ) - ax.plot(x, y, alpha=samples_alpha, color=samples_color) + ax.plot(x, y, alpha=samples_alpha, color=samples_color, zorder=.5) # Plot the point estimate of the psychometric function plot_psychometric_function(