Giter Site home page Giter Site logo

antononcube / raku-text-plot Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 1.0 78 KB

Raku package for textual (terminal) plots.

Home Page: https://raku.land/zef:antononcube/Text::Plot

License: Artistic License 2.0

Raku 99.80% Shell 0.20%
data-plotting raku raku-lang raku-module text-plotting

raku-text-plot's Issues

Erroneous extra `-`s and/or `|`s in axes

Problem

Erroneous extra -s and/or |s in axes.

cf https://www.reddit.com/r/rakulang/comments/wmm72z/just_reproducing/

I duplicated reddit user Sebastien_Dorey_SDO's results using the module from the current github repo's master branch.

Expected

text-list-plot 33 12 21 10 3 4

would yield something like:

+---+-----------+-----------+------------+-----------+-----------+---+
+                                                                    +  35.00
|   *                                                                |
+                                                                    +  30.00
|                                                                    |
+                                                                    +  25.00
|                                                                    |
+                           *                                        +  20.00
|                                                                    |
+                                                                    +  15.00
|               *                                                    |
+                                        *                           +  10.00
|                                                                    |
+                                                                    +   5.00
|                                                    *           *   |
+---+-----------+-----------+------------+-----------+-----------+---+
    0.00        1.00        2.00         3.00        4.00        5.00

Actual

Erroneous extra -s and/or |s in axes. See reddit post. I see an additional (12th) - between 2.00 and 3.00 on the x-axis (not easy to spot!) and several easy to spot additional |s in the y-axis.

FYI about a "user" and debugging the problem

It seems like a nice module.

I tried to debug the problem. My hope was I could pleasantly surprise you with a PR instead of (or at least additional to) filing an issue. I did make progress -- I suspect the issue is in rescale, right? -- but it took me uncomfortably long to get there (a good half hour) when I suspect you would have known where to look in seconds. I'm not sure if that's helpful info but I thought it worth mentioning given that I did invest that time even if it ended up being unproductive.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.