mirror of https://github.com/emilk/egui.git
Emil Ernerfeldt
1 year ago
committed by
GitHub
30 changed files with 134 additions and 57 deletions
@ -0,0 +1,5 @@ |
|||
# Changelog for egui_plot |
|||
All notable changes to the `egui_plot` integration will be noted in this file. |
|||
|
|||
This file is updated upon each release. |
|||
Changes since the last release can be found by running the `scripts/generate_changelog.py` script. |
@ -0,0 +1,42 @@ |
|||
[package] |
|||
name = "egui_plot" |
|||
version = "0.22.0" |
|||
authors = [ |
|||
"Dominik Rössler <dominik@freshx.de>", |
|||
"Emil Ernerfeldt <emil.ernerfeldt@gmail.com>", |
|||
"René Rössler <rene@freshx.de>", |
|||
] |
|||
description = "Immediate mode plotting for the egui GUI library" |
|||
edition = "2021" |
|||
rust-version = "1.67" |
|||
homepage = "https://github.com/emilk/egui" |
|||
license = "MIT OR Apache-2.0" |
|||
readme = "README.md" |
|||
repository = "https://github.com/emilk/egui" |
|||
categories = ["visualization", "gui"] |
|||
keywords = ["egui", "plot", "plotting"] |
|||
include = ["../LICENSE-APACHE", "../LICENSE-MIT", "**/*.rs", "Cargo.toml"] |
|||
|
|||
[package.metadata.docs.rs] |
|||
all-features = true |
|||
|
|||
[lib] |
|||
|
|||
|
|||
[features] |
|||
default = [] |
|||
|
|||
|
|||
## Allow serialization using [`serde`](https://docs.rs/serde). |
|||
serde = ["dep:serde", "egui/serde"] |
|||
|
|||
|
|||
[dependencies] |
|||
egui = { version = "0.22.0", path = "../egui", default-features = false } |
|||
|
|||
|
|||
#! ### Optional dependencies |
|||
## Enable this when generating docs. |
|||
document-features = { version = "0.2", optional = true } |
|||
|
|||
serde = { version = "1", optional = true, features = ["derive"] } |
@ -0,0 +1,9 @@ |
|||
# egui_plot |
|||
|
|||
[![Latest version](https://img.shields.io/crates/v/egui_plot.svg)](https://crates.io/crates/egui_plot) |
|||
[![Documentation](https://docs.rs/egui_plot/badge.svg)](https://docs.rs/egui_plot) |
|||
[![unsafe forbidden](https://img.shields.io/badge/unsafe-forbidden-success.svg)](https://github.com/rust-secure-code/safety-dance/) |
|||
![MIT](https://img.shields.io/badge/license-MIT-blue.svg) |
|||
![Apache](https://img.shields.io/badge/license-Apache-blue.svg) |
|||
|
|||
Immediate mode plotting for [`egui`](https://github.com/emilk/egui). |
@ -1,9 +1,7 @@ |
|||
use std::{fmt::Debug, ops::RangeInclusive, sync::Arc}; |
|||
|
|||
use epaint::{ |
|||
emath::{remap_clamp, round_to_decimals}, |
|||
Pos2, Rect, Shape, Stroke, TextShape, |
|||
}; |
|||
use egui::emath::{remap_clamp, round_to_decimals, Pos2, Rect}; |
|||
use egui::epaint::{Shape, Stroke, TextShape}; |
|||
|
|||
use crate::{Response, Sense, TextStyle, Ui, WidgetText}; |
|||
|
@ -1,8 +1,9 @@ |
|||
use crate::emath::NumExt; |
|||
use crate::epaint::{Color32, RectShape, Rounding, Shape, Stroke}; |
|||
use egui::emath::NumExt as _; |
|||
use egui::epaint::{Color32, RectShape, Rounding, Shape, Stroke}; |
|||
|
|||
use crate::{BoxPlot, Cursor, PlotPoint, PlotTransform}; |
|||
|
|||
use super::{add_rulers_and_text, highlighted_color, Orientation, PlotConfig, RectElement}; |
|||
use crate::plot::{BoxPlot, Cursor, PlotPoint, PlotTransform}; |
|||
|
|||
/// Contains the values of a single box in a box plot.
|
|||
#[derive(Clone, Debug, PartialEq)] |
@ -1,7 +1,9 @@ |
|||
use egui::emath::NumExt as _; |
|||
use egui::epaint::{Color32, Rgba, Stroke}; |
|||
|
|||
use crate::transform::{PlotBounds, PlotTransform}; |
|||
|
|||
use super::{Orientation, PlotPoint}; |
|||
use crate::plot::transform::{PlotBounds, PlotTransform}; |
|||
use epaint::emath::NumExt; |
|||
use epaint::{Color32, Rgba, Stroke}; |
|||
|
|||
/// Trait that abstracts from rectangular 'Value'-like elements, such as bars or boxes
|
|||
pub(super) trait RectElement { |
@ -1,7 +1,8 @@ |
|||
use epaint::{Pos2, Shape, Stroke, Vec2}; |
|||
use std::ops::{Bound, RangeBounds, RangeInclusive}; |
|||
|
|||
use crate::plot::transform::PlotBounds; |
|||
use egui::{Pos2, Shape, Stroke, Vec2}; |
|||
|
|||
use crate::transform::PlotBounds; |
|||
|
|||
/// A point coordinate in the plot.
|
|||
///
|
Loading…
Reference in new issue