diff --git a/Cargo.toml b/Cargo.toml index 08c1679..d201288 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,8 +33,8 @@ colored = { version = "2.0", optional = true } atty = { version = "0.2.14", optional = true } clap = { version = "4.0", optional = true, features = ["cargo"] } clap_autocomplete = { version = "0.4", optional = true } -poloto = { version = "18", optional = true, default-features = false } -hypermelon = "0.5.0" +poloto = { version = "19", optional = true, default-features = false } +tagu = "0.1.6" rand_xorshift = { version = "0.3.0", optional = true } [features] diff --git a/src/bin/main.rs b/src/bin/main.rs index 62c6924..67204eb 100644 --- a/src/bin/main.rs +++ b/src/bin/main.rs @@ -902,7 +902,7 @@ fn main() { )) .text(); - use hypermelon::elem::Elem; + use tagu::elem::{Elem, Raw}; let plotter = poloto::frame_build() .data(poloto::plots!(line, scatter, determination)) @@ -921,11 +921,11 @@ fn main() { poloto::header() .with_dim([1100., 500.]) .with_viewbox([1100., 500.]) - .append(poloto::render::Theme::dark()) - .append(hypermelon::elem::Element::new("style").append( + .dark_theme() + .append(tagu::elem::Element::new("style").append(Raw::new( ".poloto_legend[y=\"200\"] \ { transform: translate(0, -60px); }", - )), + ))), ); let data = plotter.render_string().unwrap();