Skip to content

Conversation

@kazuki
Copy link

@kazuki kazuki commented Oct 5, 2024

matplotlib is not in dependencies at pyproject.toml.
But importing fCWT raises import error.

$  python -c "import fcwt"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/.../python3.12/site-packages/fcwt/__init__.py", line 2, in <module>
    from .boilerplate import cwt, plot
  File "/.../python3.12/site-packages/fcwt/boilerplate.py", line 3, in <module>
    import matplotlib.pyplot as plt
ModuleNotFoundError: No module named 'matplotlib'

In this PR, I changed the location of matplotlib import from the top level to inside a function.
This will ensure that matplotlib is imported only when plot is called.

@kazuki kazuki force-pushed the fix-matplotlib-import-error branch from e45d228 to 39983bb Compare August 8, 2025 06:06
@kazuki
Copy link
Author

kazuki commented Aug 8, 2025

resolved the conflict.

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

Successfully merging this pull request may close these issues.

1 participant