Skip to content
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
2,124 changes: 36 additions & 2,088 deletions Cargo.lock

Large diffs are not rendered by default.

12 changes: 0 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ plotive-base.workspace = true
plotive-text.workspace = true
# feature dsl
plotive-dsl = { workspace = true, optional = true }
# feature data-polars
polars = { workspace = true, optional = true }

[dev-dependencies]
plotive-iced = { path = "iced", features = ["clipboard"] }
Expand All @@ -33,7 +31,6 @@ ode_solvers = "0.6.1"
default = ["noto-sans"]

data-csv = []
data-polars = ["dep:polars"]
dsl = ["plotive-dsl/diag"]
noto-mono = ["plotive-text/noto-mono"]
noto-sans = ["plotive-text/noto-sans"]
Expand Down Expand Up @@ -84,14 +81,6 @@ required-features = ["utils"]
name = "multiple_axes_dsl"
required-features = ["dsl", "utils"]

[[example]]
name = "polars_iris"
required-features = ["data-polars"]

[[example]]
name = "polars_sine"
required-features = ["data-polars"]

[[example]]
name = "readme"

Expand Down Expand Up @@ -143,7 +132,6 @@ iced = { version = "0.14.0", features = [
iced_font_awesome = "0.4.0"
log = "0.4"
miette = { version = "7.6.0", features = ["fancy"] }
polars = { version = "0.50.0", features = ["lazy"] }
rand = "0.9.2"
rand_distr = "0.5.1"
rand_chacha = "0.9.0"
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ This DSL is still fairly incomplete, but all examples in the repo are working.

- **Data sources** (`plotive::data`)
- Flexible, column-friendly data source system
- Support for CSV and [polars](https://pola.rs) is included
- Support for CSV is included

- **Rendering surfaces** (`plotive::render` and separate crates)
- `plotive-pxl`: Rasterized rendering (PNG, or pixels array)
Expand Down Expand Up @@ -142,8 +142,6 @@ During execution, the following window shows:
## Crate features

- `data-csv`: enables CSV data source support ([`plotive::data::csv`](https://docs.rs/plotive/latest/plotive/data/csv/index.html))
- `data-polars`: enables [Polars](https://pola.rs) data source support ([`plotive::data::polars`](https://docs.rs/plotive/latest/plotive/data/polars/index.html)).<br />
Pulls in the `polars` dependency, which is quite a beast to compile.
- `dsl`: enables the support for `.plotive` DSL.
- `noto-mono`, `noto-sans`, `noto-sans-italic`, `noto-serif`, `noto-serif-italic`: bundles the corresponding fonts from Google in the final executable, and enables `plotive::bundled_font_db()`.<br />
`noto-sans` is enabled by default
Expand Down
127 changes: 0 additions & 127 deletions examples/polars_iris.rs

This file was deleted.

41 changes: 0 additions & 41 deletions examples/polars_sine.rs

This file was deleted.

54 changes: 15 additions & 39 deletions run_all_examples.sh
Original file line number Diff line number Diff line change
@@ -1,52 +1,28 @@
#! /bin/bash

RUN_POLARS=n
POS_ARGS=()

while [[ $# -gt 0 ]]; do
case $1 in
-p | --polars)
RUN_POLARS=y
shift
;;
-* | --*)
echo "Unknown option $1"
shift
;;
*)
POS_ARGS+=("$1")
shift
;;
esac
done

cargo run --example text_line --package plotive-text --features noto-sans
cargo run --example text_rich --package plotive-text --features noto-sans,noto-serif

cargo run --example area -- ${POS_ARGS[@]}
cargo run --example bars -- ${POS_ARGS[@]}
cargo run --example gauss -- ${POS_ARGS[@]}
cargo run --example sine -- ${POS_ARGS[@]}
cargo run --example area -- $@
cargo run --example bars -- $@
cargo run --example gauss -- $@
cargo run --example sine -- $@

cargo run --example bouncing_ball --features time -- ${POS_ARGS[@]}
cargo run --example bouncing_ball --features time -- $@

cargo run --example bode_rlc --features noto-serif-italic,utils -- ${POS_ARGS[@]}
cargo run --example bode_rlc --features noto-serif-italic,utils -- $@

cargo run --example multiple_axes --features utils -- ${POS_ARGS[@]}
cargo run --example subplots --features utils -- ${POS_ARGS[@]}
cargo run --example multiple_axes --features utils -- $@
cargo run --example subplots --features utils -- $@

cargo run --example bitcoin --features data-csv,time -- ${POS_ARGS[@]}
cargo run --example iris --features data-csv -- ${POS_ARGS[@]}
cargo run --example stars --features data-csv -- ${POS_ARGS[@]}
cargo run --example bitcoin --features data-csv,time -- $@
cargo run --example iris --features data-csv -- $@
cargo run --example stars --features data-csv -- $@

cargo run --example bode_rlc_dsl --features dsl,noto-serif-italic,utils -- ${POS_ARGS[@]}
cargo run --example bode_rlc_dsl --features dsl,noto-serif-italic,utils -- $@

cargo run --example iris_dsl --features data-csv,dsl -- ${POS_ARGS[@]}
cargo run --example iris_dsl --features data-csv,dsl -- $@

cargo run --example multiple_axes_dsl --features dsl,utils -- ${POS_ARGS[@]}
cargo run --example subplots_dsl --features dsl,utils -- ${POS_ARGS[@]}

if [ "$RUN_POLARS" = "y" ]; then
cargo run --example polars_iris --features data-polars -- ${POS_ARGS[@]}
cargo run --example polars_sine --features data-polars -- ${POS_ARGS[@]}
fi
cargo run --example multiple_axes_dsl --features dsl,utils -- $@
cargo run --example subplots_dsl --features dsl,utils -- $@
3 changes: 0 additions & 3 deletions src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ use std::sync::Arc;
#[cfg(feature = "data-csv")]
pub mod csv;

#[cfg(feature = "data-polars")]
pub mod polars;

#[cfg(feature = "time")]
use crate::time::{DateTime, TimeDelta};

Expand Down
77 changes: 0 additions & 77 deletions src/data/polars.rs

This file was deleted.

2 changes: 0 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@
* ## Crate features
*
* - `data-csv`: enables CSV data source support (See [`data::csv`])
* - `data-polars`: enables [Polars](https://pola.rs) data source support (See [`data::polars`])
* pulls in the `polars` dependency, which is quite a beast to compile.
* - `dsl`: enables the support for `.plotive` DSL. (See [`dsl`] and [`plotive-dsl` crate](https://crates.io/crates/plotive-dsl))
* - `noto-mono`, `noto-sans`, `noto-sans-italic`, `noto-serif`, `noto-serif-italic`: bundles the corresponding fonts from Google in the final executable, and enables `plotive::bundled_font_db()`.<br />
* `noto-sans` is enabled by default
Expand Down
Loading