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

Fix some problems in spider plots #1389

Merged
merged 1 commit into from
Sep 24, 2021
Merged

Fix some problems in spider plots #1389

merged 1 commit into from
Sep 24, 2021

Conversation

Zaharid
Copy link
Contributor

@Zaharid Zaharid commented Aug 27, 2021

There were some unused variables, a typo in a comparison and bad
indentation on various plots.

@Zaharid Zaharid assigned Zaharid, RosalynLP and tgiani and unassigned Zaharid Aug 27, 2021
@Zaharid
Copy link
Contributor Author

Zaharid commented Aug 27, 2021

I haven't actually tested this, so it would be good if someone could check that the various options still work.

phi = [exp_phi for (exp_phi, npoints) in fitphi]
xticks = [group.name for group in fitgroup]
for fit, fitphi, fitgroup in zip(fits, fits_groups_data_phi, fits_groups_data):
phi = [exp_phi for (exp_phi, npoints) in fitphi]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tested this and it works fine. The tiny suggestion below just gets rid of an unused variable:

Suggested change
phi = [exp_phi for (exp_phi, npoints) in fitphi]
phi = [exp_phi for (exp_phi, _) in fitphi]

and (in terms of spider plots) there is one more here:

phi = [exp_phi for (exp_phi, npoints) in groups_data_phi]

There were some unused variables, a typo in a comparison and bad
indentation on various plots.
@Zaharid Zaharid merged commit 0cf570e into master Sep 24, 2021
@Zaharid Zaharid deleted the spiderfixes branch September 24, 2021 14:37
@Zaharid Zaharid changed the title [WIP] Fix some problems in spider plots Fix some problems in spider plots Oct 28, 2021
@Zaharid Zaharid added the bug Something isn't working label Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants