Skip to content

Bump Rust Version and fix Plot Item Visibility in Demo #104

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"files.insertFinalNewline": true,
"editor.formatOnSave": true,
"files.trimTrailingWhitespace": true,
"editor.semanticTokenColorCustomizations": {
"rules": {
"*.unsafe:rust": "#eb5046"
}
},
// Tell Rust Analyzer to use its own target directory, so we don't need to wait for it to finish wen we want to `cargo run`
"rust-analyzer.check.overrideCommand": [
"cargo",
"clippy",
"--target-dir=target_ra",
"--workspace",
"--message-format=json",
"--all-targets",
"--all-features",
],
"rust-analyzer.cargo.buildScripts.overrideCommand": [
"cargo",
"clippy",
"--quiet",
"--target-dir=target_ra",
"--workspace",
"--message-format=json",
"--all-targets",
"--all-features",
],
"rust-analyzer.showUnlinkedFileNotification": false,
// Uncomment the following options and restart rust-analyzer to get it to check code behind `cfg(target_arch=wasm32)`.
// Don't forget to put it in a comment again before committing.
// "rust-analyzer.cargo.target": "wasm32-unknown-unknown",
}
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ Immediate mode plotting for [`egui`](https://github.com/emilk/egui).

[Try the web demo](https://emilk.github.io/egui_plot/)

### Testing
* Locally: `cargo run -p demo`
* Web: `(cd demo && trunk serve)`
## Testing

- Locally: `cargo run -p demo`
- Web: `(cd demo && trunk serve)`

### History
This crate was originally hosted at https://github.com/emilk/egui but was extracted into its own repository on 2024-07-15.
## History

This crate was originally hosted at <https://github.com/emilk/egui> but was extracted into its own repository on 2024-07-15.
1 change: 1 addition & 0 deletions demo/src/plot_demo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ impl MarkerDemo {
[6.0, 0.5 + y_offset],
],
)
.id(format!("marker_{i}"))
.name(format!("{marker:?}"))
.filled(self.fill_markers)
.radius(self.marker_radius)
Expand Down
4 changes: 2 additions & 2 deletions egui_plot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ pub use crate::{
axis::{Axis, AxisHints, HPlacement, Placement, VPlacement},
items::{
Arrows, Bar, BarChart, BoxElem, BoxPlot, BoxSpread, ClosestElem, HLine, Line, LineStyle,
MarkerShape, Orientation, PlotConfig, PlotGeometry, PlotImage, PlotItem, PlotPoint,
PlotPoints, Points, Polygon, Text, VLine,
MarkerShape, Orientation, PlotConfig, PlotGeometry, PlotImage, PlotItem, PlotItemBase,
PlotPoint, PlotPoints, Points, Polygon, Text, VLine,
},
legend::{ColorConflictHandling, Corner, Legend},
memory::PlotMemory,
Expand Down
Loading