Closed
Conversation
Collaborator
michalsustr
commented
Dec 4, 2025
- Closes https://github.com/emilk/egui_plot/issues/THE_RELEVANT_ISSUE
- I have followed the instructions in the PR template
This adds a new FilledArea plot item that fills the area between two lines defined by x values and corresponding y_min and y_max values. API: FilledArea::new(name, &xs, &ys_min, &ys_max) Useful for visualizing: - Confidence intervals - Min-max ranges - Uncertainty bands Features: - Customizable fill color (Color32) - Optional stroke around boundaries - Follows existing plot item patterns Closes #190 Add filled_area example to demo gallery - Created filled_area example with sin(x) and adjustable bounds - Added controls for delta_lower and delta_upper offsets - Integrated into demo gallery - Added workspace dependencies Fix FilledArea rendering and export - Export FilledArea in lib.rs for public use - Fix polygon rendering by using Mesh instead of convex_polygon - Creates proper triangle strips to avoid connecting first/last points - Fills area correctly between upper and lower boundaries Fix Arc<Mesh> compilation error and add screenshots - Wrap Mesh in Arc as required by egui Shape::Mesh API - Fix unused variable warning (ui -> _ui) - Add std::sync::Arc import - Generate screenshots using UPDATE_SNAPSHOTS=1 cargo test - Screenshots now show actual filled area demo with interactive controls screenshot fixes tags fixes lint screenshots rm add some change
|
View snapshot changes at kitdiff |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.