Skip to content

Commit

Permalink
Fix warnings in plot.py [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane authored and erikbern committed Apr 10, 2023
1 parent 19f7151 commit b458e8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ def mean_y(algo):
max_x = max([max_x] + [x for x in xs if x < 1])
color, faded, linestyle, marker = linestyles[algo]
(handle,) = plt.plot(
xs, ys, "-", label=algo, color=color, ms=7, mew=3, lw=3, linestyle=linestyle, marker=marker
xs, ys, "-", label=algo, color=color, ms=7, mew=3, lw=3, marker=marker
)
handles.append(handle)
if raw:
(handle2,) = plt.plot(
axs, ays, "-", label=algo, color=faded, ms=5, mew=2, lw=2, linestyle=linestyle, marker=marker
axs, ays, "-", label=algo, color=faded, ms=5, mew=2, lw=2, marker=marker
)
labels.append(algo)

Expand Down Expand Up @@ -73,7 +73,7 @@ def inv_fun(x):
plt.gca().get_position()
# plt.gca().set_position([box.x0, box.y0, box.width * 0.8, box.height])
ax.legend(handles, labels, loc="center left", bbox_to_anchor=(1, 0.5), prop={"size": 9})
plt.grid(b=True, which="major", color="0.65", linestyle="-")
plt.grid(visible=True, which="major", color="0.65", linestyle="-")
plt.setp(ax.get_xminorticklabels(), visible=True)

# Logit scale has to be a subset of (0,1)
Expand Down

0 comments on commit b458e8f

Please sign in to comment.