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

pylustrator generates unused code? #24

Open
mmagnuski opened this issue Aug 10, 2020 · 0 comments
Open

pylustrator generates unused code? #24

mmagnuski opened this issue Aug 10, 2020 · 0 comments

Comments

@mmagnuski
Copy link

Hi, first of all - thanks for a great package! I only used it for a while now but I already see how it will make my life easier. :)

The issue I'm reporting is just a small nuisance: during my testing pylustrator seemed to add unused code at the begining of its generated output, namely:

plt.figure(1).ax_dict = {ax.get_label(): ax for ax in plt.figure(1).axes}
import matplotlib as mpl

The mpl import is unused in the generated code below. The ax_dict is also not used anywhere below. If it is used internally by pylustrator it might be useful to add a comment to this line.

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

1 participant