Skip to content

feat: Add spans for plots - #196

Merged
michalsustr merged 4 commits into
mainfrom
ms/spans
Nov 29, 2025
Merged

feat: Add spans for plots#196
michalsustr merged 4 commits into
mainfrom
ms/spans

Conversation

@michalsustr

Copy link
Copy Markdown
Collaborator

This PR adds supports for spans in plots on either axis. This allows for example to highlight a region of interest or draw states in the background of plots.

Added items to the public API

+pub struct egui_plot::Span
+impl egui_plot::Span
+pub fn egui_plot::PlotUi<'a>::span(&mut self, span: egui_plot::Span)

@michalsustr michalsustr added the include in changelog This change will be included in the changelog label Nov 29, 2025
@michalsustr

Copy link
Copy Markdown
Collaborator Author

Contributed by @azerupi in #152

@michalsustr michalsustr mentioned this pull request Nov 29, 2025
1 task
@michalsustr
michalsustr merged commit cfb81d3 into main Nov 29, 2025
12 checks passed
@michalsustr
michalsustr deleted the ms/spans branch November 29, 2025 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: line plot include in changelog This change will be included in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants