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

Wrong graph produced #8

Closed
bazzb opened this issue May 19, 2019 · 1 comment
Closed

Wrong graph produced #8

bazzb opened this issue May 19, 2019 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@bazzb
Copy link

bazzb commented May 19, 2019

They should only intersect at 0,0

⠑⢄                     ⣀⠤⠔⠒⠊⠉⠉⡉⠉⠉⠒⠒⠤⢄⡀                    ⢀⠔  100.0
  ⠑⢄⡀              ⢀⡠⠒⠉       ⠄      ⠈⠑⠢⣀               ⣀⠔⠁
    ⠈⠢⡀          ⡠⠔⠁          ⠂          ⠑⠤⡀          ⡠⠊
      ⠈⠑⢄⡀     ⡠⠊             ⡁            ⠈⠢⡀     ⣀⠔⠉
         ⠈⠒⢄⡀⡠⠊               ⠄              ⠈⠢⡀⣀⠔⠊
           ⢀⠎⠑⠢⢄⡀             ⠂             ⣀⠤⠒⠙⢄
          ⡔⠁    ⠈⠑⠢⠤⣀⡀        ⡁        ⣀⡠⠤⠒⠉     ⠱⡀
⠄⠠ ⠄⠠ ⠄⠠⢠⠎⠠ ⠄⠠ ⠄⠠ ⠄⠠ ⠌⠩⠑⠖⠲⠢⠤⠤⠤⠤⠤⠤⠤⠲⠒⠖⠩⠉⠄⠠ ⠄⠠ ⠄⠠ ⠄⠠⠈⢆⠠ ⠄⠠ ⠄⠠ ⠄
       ⡰⠁                     ⠂                     ⠣⡀
     ⢀⠜                       ⡁                      ⠑⡄
    ⢀⠎                        ⠄                       ⠘⢄
   ⢠⠃                         ⠂                        ⠈⢆
  ⡠⠃                          ⡁                         ⠈⢢
 ⡰⠁                           ⠄                           ⢣
⡰⠁                            ⠂                            ⠣
⠁                             ⠁                               -100.0
-10.0                                                    10.0
extern crate textplots;

use textplots::{Chart, Plot, Shape};

fn main() {
    Chart::default()
    .lineplot( Shape::Continuous( |x| { (-x.powf(2.0)) } ))
    .lineplot( Shape::Continuous( |x| { (x.powf(2.0)) } ))
    .display();
}
@loony-bean
Copy link
Owner

Hey @bazzb My apologies for keeping this without progress for long time, I understand this bug could be annoying.

If you think it is something you can fix, I'd be happy to merge it.

@loony-bean loony-bean added bug Something isn't working help wanted Extra attention is needed labels Aug 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants