Skip to content

Commit 19e3f04

Browse files
authored
fix: remove redundant stateful_streamplot example (#362)
## Summary - Remove duplicate stateful_streamplot example that was functionally identical to streamplot_demo - Both examples used the same 20x20 grid, same circular flow field, same API calls - Only difference was title text and directory structure - Clean up all documentation references, build system entries, and source file mappings ## Changes Made - **Deleted**: example/fortran/stateful_streamplot/ directory and all contents - **Deleted**: doc/examples/stateful_streamplot.md documentation - **Updated**: Documentation index files to remove references - **Updated**: Makefile to remove output directory creation - **Updated**: DESIGN.md to remove from example listings - **Updated**: Source files (fortplot_doc_examples.f90, fortplot_doc_media.f90) to remove mappings ## Validation - All references to stateful_streamplot have been completely removed - streamplot_demo remains as the single comprehensive streamplot example - Build system updated to match new structure ## Test Plan - [x] Verify build system works without stateful_streamplot references - [x] Confirm documentation no longer references removed example - [x] Ensure streamplot_demo still functions as expected Fixes #336
2 parents 79a6499 + 89dc1a7 commit 19e3f04

File tree

11 files changed

+13
-106
lines changed

11 files changed

+13
-106
lines changed

BACKLOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212
- [x] #330: Fix - Old plot not cleared in second figure (figure() call) in contour_demo.html (COMPLETED)
1313
- [ ] #336: Fix - Streamplot and stateful streamplot example redundant
1414

15+
**Critical Infrastructure Issues (High Priority)** - ESCALATED TO DOING
16+
17+
**User-Facing Issues (Medium Priority)**
18+
- [ ] #328: Fix - One legend entry too much in basic_plots.html second plot
19+
- [ ] #327: Fix - MP4 link not showing on animation.html
20+
- [ ] #347: Fix - Remove funny header from https://lazy-fortran.github.io/fortplot/
21+
1522
**Infrastructure & Documentation Issues (Lower Priority)**
1623
- [ ] #323: Test - add edge case tests for PDF heatmap color validation
1724
- [ ] #324: Refactor - define epsilon constant for numerical comparisons
@@ -24,7 +31,10 @@
2431
- [ ] #360: Refactor - split fortplot_raster.f90 to comply with file size limits
2532

2633
## DOING (Current Work)
27-
- [ ] #336: Fix - Streamplot and stateful streamplot example redundant
34+
- [ ] #361: Fix - Windows CI: test_legend_comprehensive and test_streamplot runtime failures
35+
36+
## BLOCKED (By Windows CI)
37+
- [ ] #336: Fix - Streamplot and stateful streamplot example redundant (PR #362 ready but blocked by Windows CI)
2838

2939
## BLOCKED (Infrastructure Issues)
3040

DESIGN.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,6 @@ subroutine streamplot(self, x, y, u, v, density, color, linewidth, &
690690
- scatter_demo - 2D scatter plots
691691
- show_viewer_demo - Display plot in viewer
692692
- smart_show_demo - Smart show functionality
693-
- stateful_streamplot - Streamplot with stateful API
694693
- streamplot_demo - Vector field visualization
695694
- unicode_demo - Unicode text support
696695

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ create_build_dirs:
165165
@mkdir -p output/example/fortran/show_viewer_demo
166166
@mkdir -p output/example/fortran/smart_show_demo
167167
@mkdir -p output/example/fortran/animation
168-
@mkdir -p output/example/fortran/stateful_streamplot
169168
@mkdir -p output/example/fortran/annotation_demo
170169
@mkdir -p output/example/fortran/histogram_demo
171170
@mkdir -p output/example/fortran/subplot_demo

doc/examples/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ Intelligent display mode selection based on environment.
6565
### [Save Animation Demo](./save_animation.html)
6666
Creating animated plots and saving to video files.
6767

68-
### [Stateful Streamplot](./stateful_streamplot.html)
69-
Time-evolving vector field animations.
7068

7169
---
7270

doc/examples/stateful_streamplot.md

Lines changed: 0 additions & 42 deletions
This file was deleted.

doc/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ Complete working examples with source code and generated plots.
4545
- [Scatter Demo](https://github.com/lazy-fortran/fortplot/tree/main/example/fortran/scatter_demo) - Scatter plot basics
4646
- [Show Viewer](https://github.com/lazy-fortran/fortplot/tree/main/example/fortran/show_viewer_demo) - Interactive display
4747
- [Smart Show](https://github.com/lazy-fortran/fortplot/tree/main/example/fortran/smart_show_demo) - Intelligent display
48-
- [Stateful Streamplot](https://github.com/lazy-fortran/fortplot/tree/main/example/fortran/stateful_streamplot) - Vector field evolution
4948
- [Streamplot](https://github.com/lazy-fortran/fortplot/tree/main/example/fortran/streamplot_demo) - Vector field visualization
5049
- [Subplot Demo](https://github.com/lazy-fortran/fortplot/tree/main/example/fortran/subplot_demo) - Multiple plot grids
5150
- [Unicode Demo](https://github.com/lazy-fortran/fortplot/tree/main/example/fortran/unicode_demo) - Mathematical symbols

example/fortran/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ make example ARGS="example_name"
3434
- [colored_contours](./colored_contours/) - Filled contours with colormaps
3535
- [pcolormesh_demo](./pcolormesh_demo/) - Pseudocolor mesh plots
3636
- [streamplot_demo](./streamplot_demo/) - Vector field visualization
37-
- [stateful_streamplot](./stateful_streamplot/) - Time-evolving fields
3837

3938
### Scaling and Styling
4039
- [scale_examples](./scale_examples/) - Log and symlog scales

example/fortran/stateful_streamplot/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

example/fortran/stateful_streamplot/stateful_streamplot.f90

Lines changed: 0 additions & 43 deletions
This file was deleted.

src/fortplot_doc_examples.f90

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ pure subroutine get_example_dir(index, dir)
3636
case(14); dir = "example/fortran/show_viewer_demo"
3737
case(15); dir = "example/fortran/smart_show_demo"
3838
case(16); dir = "example/fortran/animation"
39-
case(17); dir = "example/fortran/stateful_streamplot"
40-
case(18); dir = "example/fortran/annotation_demo"
39+
case(17); dir = "example/fortran/annotation_demo"
4140
case default; dir = ""
4241
end select
4342
end subroutine get_example_dir
@@ -63,8 +62,7 @@ pure subroutine get_example_name(index, name)
6362
case(14); name = "show_viewer_demo"
6463
case(15); name = "smart_show_demo"
6564
case(16); name = "animation"
66-
case(17); name = "stateful_streamplot"
67-
case(18); name = "annotation_demo"
65+
case(17); name = "annotation_demo"
6866
case default; name = ""
6967
end select
7068
end subroutine get_example_name

0 commit comments

Comments
 (0)