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

unexpected output with 'dumb' terminal with ansi #94

Open
bgkillas opened this issue Mar 15, 2024 · 0 comments
Open

unexpected output with 'dumb' terminal with ansi #94

bgkillas opened this issue Mar 15, 2024 · 0 comments

Comments

@bgkillas
Copy link

bgkillas commented Mar 15, 2024

if i keep 'ansi' from fg.set_terminal(..) then it doesn't print the axis, but if i dont have 'ansi' it does print the axis, i cant replicate this on gnuplot

use gnuplot::Figure;
fn main()
{
 let mut fg=Figure::new();
 fg.set_terminal("dumb size 100,50 aspect 1,1 ansi","");
 let a=1000;
 let mut x=Vec::new();
 let mut y=Vec::new();
 for i in 1..=a
 {
  x.push(i as f64/a as f64);
  y.push((i as f64/a as f64).powf(2.0));
 }
 fg.axes2d().lines(x,y,&[]);
 fg.show();
}
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

1 participant