Skip to content

Commit

Permalink
Update plot.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kif authored Jul 11, 2024
1 parent b61ba75 commit 8754464
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/freesas/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def scatter_plot(
ax.errorbar(
q,
I,
err,
numpy.maximum(0,err),
label=label_exp,
capsize=0,
color=exp_color,
Expand All @@ -100,7 +100,7 @@ def scatter_plot(
ax.errorbar(
q,
I,
err,
numpy.maximum(0,err),
label=label_exp,
capsize=0,
color=exp_color,
Expand Down Expand Up @@ -210,7 +210,7 @@ def kratky_plot(
xdata = q * Rg
ydata = xdata * xdata * I / I0
if err is not None:
dy = xdata * xdata * err / I0
dy = xdata * xdata * numpy.maximum(0,err) / abs(I0)
dplot = ax.errorbar(
xdata,
ydata,
Expand Down Expand Up @@ -302,7 +302,7 @@ def guinier_plot(
else:
fig, ax = subplots(figsize=(12, 10))
if err is not None:
dlogI = err[mask] / logI
dlogI = err[mask] / I[mask]
ax.errorbar(
q2,
logI,
Expand Down

0 comments on commit 8754464

Please sign in to comment.