Skip to content
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

Categorical view to text produces empty string #75

Open
vlashada opened this issue Jul 13, 2022 · 1 comment
Open

Categorical view to text produces empty string #75

vlashada opened this issue Jul 13, 2022 · 1 comment

Comments

@vlashada
Copy link

vlashada commented Jul 13, 2022

I get no text output when trying to convert a categorical view to text. When writing to svg, like barchart example, I see them, but when trying to convert to text, the output is empty.

use plotlib::{
repr::BarChart,
style::BoxStyle,
view::{CategoricalView, View},
};

fn main() {
    let b1 = BarChart::new(5.3).label("1");
    let b2 = BarChart::new(2.6)
        .label("2")
        .style(&BoxStyle::new().fill("darkolivegreen"));

    let v = CategoricalView::new()
        .add(b1)
        .add(b2)
        .x_label("Experiment")
        .to_text(20, 20)
        .unwrap();

    println!("{:?}", v);let v = CategoricalView::new()
        .add(b1)
        .add(b2)
        .x_label("Experiment")
        .to_text(20, 20)
        .unwrap();

    println!("{:?}", v);
}
@raheelahmad
Copy link

looks like it has not been implemented yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants