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

Can plotters support plot on terminal? #241

Closed
alienzj opened this issue Mar 29, 2021 · 3 comments
Closed

Can plotters support plot on terminal? #241

alienzj opened this issue Mar 29, 2021 · 3 comments

Comments

@alienzj
Copy link

alienzj commented Mar 29, 2021

Hi, Hao,

Can plotters support the plot on the terminal?

I want to plot long reads distribution directly on the terminal. If plotters support this, it would be awesome.

Best regards,
Jie

@38
Copy link
Member

38 commented May 21, 2021

Hi Jie,

Sorry for delayed reply - I was not able to actively work on the crate until now.

There's a text backend see https://github.com/plotters-rs/plotters-text which is WIP. So you probably needs to import the crate from github. Feel to try it. For example.

use plotters_text::TextDrawingBackend;
use plotters::prelude::*;

let back = TextDrawingBackend::new(70, 30);
let root = back.into_drawing_area();

// Same plotting code goes here

Please let me know if you have any question.

At this time, I would like to close this issue and open another issue under plotters-text repo plotters-rs/plotters-text#3 to tracking it.

Cheers!

@alienzj
Copy link
Author

alienzj commented May 22, 2021

Great !
Thanks for your reply.
I will try it.

@SOF3
Copy link

SOF3 commented Nov 1, 2023

I want a plotters backend for a TUI framework like ratatui. Does anyone have similar plans, or should I try working on it?

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

3 participants