Skip to content

Commit

Permalink
add overlay option
Browse files Browse the repository at this point in the history
  • Loading branch information
nwlandry committed Apr 26, 2024
1 parent 971f007 commit 8bdf20c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 6 additions & 2 deletions plot_fig2.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
measure = "auroc"
axis_limits = [0, 1]

r0_lines = True

fs.set_fonts()
fs.set_colors()
cmap = fs.cmap
Expand Down Expand Up @@ -108,8 +110,10 @@ def visualize_networks(i, ax):
ax.set_yticks([0, 0.5, 1], [0, 0.5, 1])

beta_c = gamma / l
for r0 in range(1, 100, 10):
ax.plot(var, r0 * beta_c, "-", linewidth=0.25, color="grey")

if r0_lines:
for r0 in range(1, 100, 10):
ax.plot(var, r0 * beta_c, "-", linewidth=0.25, color="grey")

if i == 0:
ax.set_ylabel(r"$\beta$")
Expand Down
7 changes: 5 additions & 2 deletions plot_fig4.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
gamma = 0.1
measure = "auroc"

r0_lines = True

axis_limits = [0, 1]

fs.set_fonts()
Expand Down Expand Up @@ -113,8 +115,9 @@ def visualize_networks(i, ax):

beta_c = gamma / l

for r0 in range(1, 100, 10):
ax.plot(var, r0 * beta_c, "-", linewidth=0.25, color="grey")
if r0_lines:
for r0 in range(1, 100, 10):
ax.plot(var, r0 * beta_c, "-", linewidth=0.25, color="grey")

if i == 0:
ax.set_ylabel(r"$\beta$")
Expand Down

0 comments on commit 8bdf20c

Please sign in to comment.