Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extended area under curve plot #4

Open
Jawing opened this issue Aug 5, 2022 · 1 comment
Open

extended area under curve plot #4

Jawing opened this issue Aug 5, 2022 · 1 comment

Comments

@Jawing
Copy link

Jawing commented Aug 5, 2022

area_under_curve_x = mrec[:-1] + [mrec[-2]] + [mrec[-1]]

'+' doesn't seem to append numpy arrays, suggestion:

area_under_curve_x = mrec[:-1].tolist() + [mrec[-2]] + [mrec[-1]]
area_under_curve_y = mpre[:-1].tolist() + [0.0] + [mpre[-1]]
@yfpeng
Copy link
Owner

yfpeng commented Aug 5, 2022

Fixed. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants