Git Product home page Git Product logo

Comments (4)

tammoippen avatar tammoippen commented on May 29, 2024 1

1 - Make optimizations before rendering to avoid useless computations

I recently thought about something similar. Would you consider opening a pull request? Or is it ok, if I start integrating it based on your lib?

2 - Separate Canvas module so it can be used as a dependency on plotille, maybe drawille, and potentially on other projects.

I will have a look into this...

from plotille.

tammoippen avatar tammoippen commented on May 29, 2024 1

Regarding the optimization: i decided against integrating it into plotille, as the approach will not fit for every data, especially high frequency data might get under-sampled. There min, max, median resample might be a better approach. Hence i leave it to the user to reduce the input to some appropriate size.

I will again look into separating the project... i kind of got distracted.. 😳

from plotille.

tammoippen avatar tammoippen commented on May 29, 2024 1

Regarding the splitting: when I start with a canvas module, i also have to include color, and part of utils, which I also need in the other parts of this package. This means I either have code duplication in both packages or more small packages or both... I also have to manage version compatibility between these packages... neither sounds nice to me for this small project.

Further, the gain is not so dramatic: it is possible to install plotille right now to use both Canvas and color without ever touching the other plotting functions, all at the cost of 3 more unused .py files (approx. 31kb).

maybe drawille, and potentially on other projects [...will use this Canvas].

Drawille did not change since end of 2017 - i would be flattered if they consider using mine, but i do not think they would touch the running system :D. Other projects have the option to use the older, more stable drawille.Canvas with text printing, or the fancy, new plottile.Canvas with colors 🎉 .

tldr: I will not split the project to keep it manageable for me.

from plotille.

carlosplanchon avatar carlosplanchon commented on May 29, 2024

Yeah, integrate it based on my lib or even my code if you want.
On 2018 I was experimenting with something like what you are doing now and it's great to see you came with a better solution:
https://github.com/carlosplanchon/outfancy/blob/master/outfancy/chart.py
(I'll remove plotting functions on Outfancy in the next version 'cause plotille is already doing it).

from plotille.

Related Issues (20)

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.