Skip to content

Refactor plotting and animation logic#15

Merged
CyrilJl merged 3 commits into
mainfrom
refactor-plot-animate-logic
Aug 21, 2025
Merged

Refactor plotting and animation logic#15
CyrilJl merged 3 commits into
mainfrom
refactor-plot-animate-logic

Conversation

@google-labs-jules

Copy link
Copy Markdown
Contributor

Separated the classic and quiver logic from _plot.py and _animate.py into new files: _classic.py and _quiver.py. This improves modularity and maintainability.

The files _plot.py and _animate.py were becoming too large and contained mixed logic for classic (scalar) and quiver (vector) plots and animations.

This refactoring separates these concerns into two new files:
- `mapflow/_classic.py`: Contains `PlotModel` and `Animation` for scalar data.
- `mapflow/_quiver.py`: Contains `plot_da_quiver` and a new `QuiverAnimation` class for vector data.

The original `_plot.py` and `_animate.py` files have been removed, and the package's `__init__.py` has been updated to expose the same public API.

This change improves code organization and makes the library easier to maintain and extend.
@CyrilJl CyrilJl marked this pull request as ready for review August 21, 2025 11:39
@CyrilJl CyrilJl merged commit 7bfb28e into main Aug 21, 2025
2 checks passed
@CyrilJl CyrilJl deleted the refactor-plot-animate-logic branch August 25, 2025 08:20
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.

2 participants