### Run Web Example Source: https://github.com/emilk/egui_plot/blob/main/examples/custom_axes/README.md Serve the custom axes example for web deployment using Trunk. ```sh cd examples/custom_axes trunk serve ``` -------------------------------- ### Run Native Example Source: https://github.com/emilk/egui_plot/blob/main/examples/linked_axes/README.md Execute the linked axes example natively using Cargo. ```sh cargo run -p linked_axes ``` -------------------------------- ### Run Web (WASM) Example Source: https://github.com/emilk/egui_plot/blob/main/examples/linked_axes/README.md Serve the linked axes example for web deployment using Trunk. ```sh cd examples/linked_axes trunk serve ``` -------------------------------- ### Run Web (WASM) Example Source: https://github.com/emilk/egui_plot/blob/main/examples/legend_sort/README.md Serve the legend sort example for web deployment using Trunk. ```sh cd examples/legend_sort trunk serve ``` -------------------------------- ### Run Web (WASM) Example Source: https://github.com/emilk/egui_plot/blob/main/examples/lines/README.md Serve the line plotting example for the web using Trunk. ```sh cd examples/lines trunk serve ``` -------------------------------- ### Run Native Example Source: https://github.com/emilk/egui_plot/blob/main/examples/legend_sort/README.md Execute the legend sort example natively using Cargo. ```sh cargo run -p legend_sort ``` -------------------------------- ### Run Native Example Source: https://github.com/emilk/egui_plot/blob/main/examples/save_plot/README.md Execute the save_plot example natively using Cargo. ```sh cargo run -p save_plot ``` -------------------------------- ### Run Web Example Source: https://github.com/emilk/egui_plot/blob/main/examples/interaction/README.md Serve the interaction demo for web deployment using Trunk. ```sh cd examples/interaction trunk serve ``` -------------------------------- ### Run Native Example Source: https://github.com/emilk/egui_plot/blob/main/examples/lines/README.md Execute the line plotting example natively using Cargo. ```sh cargo run -p lines ``` -------------------------------- ### Run Native Example Source: https://github.com/emilk/egui_plot/blob/main/examples/custom_axes/README.md Execute the custom axes example natively using Cargo. ```sh cargo run -p custom_axes ``` -------------------------------- ### Run Native Example Source: https://github.com/emilk/egui_plot/blob/main/examples/interaction/README.md Execute the interaction demo natively using Cargo. ```sh cargo run -p interaction ``` -------------------------------- ### Run Web (WASM) Example Source: https://github.com/emilk/egui_plot/blob/main/examples/save_plot/README.md Serve the save_plot example for web deployment using Trunk. ```sh cd examples/save_plot trunk serve ``` -------------------------------- ### Run Native Example Source: https://github.com/emilk/egui_plot/blob/main/examples/markers/README.md Execute the marker demo natively using Cargo. ```sh cargo run -p markers ``` -------------------------------- ### Run Web (WASM) Example Source: https://github.com/emilk/egui_plot/blob/main/examples/markers/README.md Serve the marker demo for web deployment using Trunk. ```sh cd examples/markers trunk serve ``` -------------------------------- ### Run Web (WASM) Example Source: https://github.com/emilk/egui_plot/blob/main/examples/legend/README.md Serve the legend demo for web deployment using Trunk. ```sh cd examples/legend trunk serve ``` -------------------------------- ### Run Native Example Source: https://github.com/emilk/egui_plot/blob/main/examples/items/README.md Use this command to run the items demo natively. ```sh cargo run -p items ``` -------------------------------- ### Run Filled Area Example Source: https://github.com/emilk/egui_plot/blob/main/examples/filled_area/README.md Execute the filled area example using cargo. ```bash cargo run -p filled_area ``` -------------------------------- ### Run Web (WASM) Example Source: https://github.com/emilk/egui_plot/blob/main/examples/custom_plot_manipulation/README.md Serve the custom plot manipulation example for web deployment using Trunk. ```sh cd examples/custom_plot_manipulation trunk serve ``` -------------------------------- ### Run Native Example Source: https://github.com/emilk/egui_plot/blob/main/examples/custom_plot_manipulation/README.md Execute the custom plot manipulation example natively using Cargo. ```sh cargo run -p custom_plot_manipulation ``` -------------------------------- ### Run Native Example Source: https://github.com/emilk/egui_plot/blob/main/examples/legend/README.md Execute the legend demo natively using Cargo. ```sh cargo run -p legend ``` -------------------------------- ### Rust Bad Docstring and FIXME Example Source: https://github.com/emilk/egui_plot/blob/main/CONTRIBUTING.md Shows examples of less preferred documentation and comment styles in Rust. ```rust //gets the name pub fn get_name(&self) -> &str { &self.name } fn foo(&self) { //FIXME: this can be optimized } ``` -------------------------------- ### Run Web (WASM) Example Source: https://github.com/emilk/egui_plot/blob/main/examples/items/README.md Use these commands to run the items demo on the web using WASM. ```sh cd examples/items trunk serve ``` -------------------------------- ### Run Heatmap Demo Natively Source: https://github.com/emilk/egui_plot/blob/main/examples/heatmap/README.md Execute the heatmap example locally using Cargo. ```shell cargo run -p heatmap ``` -------------------------------- ### Run Web Histogram Demo Source: https://github.com/emilk/egui_plot/blob/main/examples/histogram/README.md Build and serve the histogram example for the web using Trunk. ```sh cd examples/histogram trunk serve ``` -------------------------------- ### Run Native Histogram Demo Source: https://github.com/emilk/egui_plot/blob/main/examples/histogram/README.md Execute the histogram example locally using Cargo. ```sh cargo run -p histogram ``` -------------------------------- ### Run Stacked Bar Demo (Web WASM) Source: https://github.com/emilk/egui_plot/blob/main/examples/stacked_bar/README.md Build and serve the stacked bar chart example as a WebAssembly application using Trunk. ```sh cd examples/stacked_bar trunk serve ``` -------------------------------- ### Run Heatmap Demo on Web (WASM) Source: https://github.com/emilk/egui_plot/blob/main/examples/heatmap/README.md Serve the heatmap example for web deployment using Trunk. ```shell cd examples/heatmap trunk serve ``` -------------------------------- ### Run Stacked Bar Demo (Native) Source: https://github.com/emilk/egui_plot/blob/main/examples/stacked_bar/README.md Execute the stacked bar chart example using Cargo for native execution. ```sh cargo run -p stacked_bar ``` -------------------------------- ### Run Native Plot Span Demo Source: https://github.com/emilk/egui_plot/blob/main/examples/plot_span/README.md Execute the plot span example natively using Cargo. ```sh cargo run -p plot_span ``` -------------------------------- ### Rust Docstring and TODO Example Source: https://github.com/emilk/egui_plot/blob/main/CONTRIBUTING.md Illustrates the correct way to write docstrings and use TODO comments in Rust code, including adding GitHub handles. ```rust /// The name of the thing. pub fn name(&self) -> &str { &self.name } fn foo(&self) { // TODO(emilk): this can be optimized } ``` -------------------------------- ### Run Native Box Plot Demo Source: https://github.com/emilk/egui_plot/blob/main/examples/box_plot/README.md Execute the box plot example natively using Cargo. ```sh cargo run -p box_plot ``` -------------------------------- ### Run Web (WASM) Box Plot Demo Source: https://github.com/emilk/egui_plot/blob/main/examples/box_plot/README.md Build and serve the box plot example for the web using Trunk. ```sh cd examples/box_plot trunk serve ``` -------------------------------- ### Run Web (WASM) Plot Span Demo Source: https://github.com/emilk/egui_plot/blob/main/examples/plot_span/README.md Serve the plot span example as a WebAssembly application using Trunk. ```sh cd examples/plot_span trunk serve ``` -------------------------------- ### Run Web (WASM) Performance Demo Source: https://github.com/emilk/egui_plot/blob/main/examples/performance/README.md Serve the performance demo on the web using Trunk. ```sh cd examples/performance trunk serve ``` -------------------------------- ### Run Native Performance Demo Source: https://github.com/emilk/egui_plot/blob/main/examples/performance/README.md Execute the performance demo locally using Cargo. ```sh cargo run -p performance ``` -------------------------------- ### Rust Slice Access: Safe vs. Unsafe Source: https://github.com/emilk/egui_plot/blob/main/CONTRIBUTING.md Demonstrates how to safely access the first element of a vector, avoiding panics associated with `unwrap` or direct indexing. ```rust let Some(first) = vec.first() else { return; }; ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.