Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

4 changes: 2 additions & 2 deletions psignifit/psigniplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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(
Expand Down