Skip to content

Commit

Permalink
Merge pull request #148 from LSSTDESC/tqz/fix_notebooks
Browse files Browse the repository at this point in the history
change plotting function to fix smoke test bug
  • Loading branch information
ztq1996 committed Jun 12, 2024
2 parents 6f4e153 + 5932045 commit c9a66b7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions examples/evaluation_examples/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@ def plot_old_valid(photoz, ztrue, gals=None, colors=None, code=""):
# sns.jointplot(data=df, x='z$_{true}$', y='z$_{phot}$', kind="kde")
plt.plot(ztrue, photoz, 'k,', label=code)
leg = ax.legend(fancybox=True, handlelength=0, handletextpad=0, loc="upper left")
for item in leg.legendHandles:
item.set_visible(False)
if gals:
if not colors:
colors = ['r'] * len(gals)
Expand Down Expand Up @@ -224,8 +222,6 @@ class from metrics.py
ax1.set_ylabel('Number')
ax1.hlines(y_uni, xmin=0, xmax=1, color='k')
leg = ax0.legend(handlelength=0, handletextpad=0, fancybox=True)
for item in leg.legendHandles:
item.set_visible(False)
if show_qq:
ax2 = plt.subplot(gs[1])
ax2.plot(sample.qq[0], (sample.qq[1] - sample.qq[0]), c='r', linestyle='-', linewidth=3)
Expand Down

0 comments on commit c9a66b7

Please sign in to comment.