Comments (4)
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.
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.
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.
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)
- Not getting the graph as required HOT 8
- Four quandrant scatter plot misalignment HOT 7
- weird spike at zero HOT 4
- install failed: AttributeError: module 'enum' has no attribute 'IntFlag' HOT 1
- Accept `datetime.date` as X input HOT 6
- Draw vertical or horizontal lines on plots HOT 4
- [feature request] Provide a CLI HOT 3
- Make y-values exakt or approximate values of the data inputs HOT 5
- Histogram breaks when all values are the same HOT 1
- Index out of bounds for hist() on negative values HOT 3
- Two plots side-by-side HOT 4
- has someone ever integrated this on a curses-like interface ? HOT 4
- hex colors not showing up when parsing terminal results HOT 3
- `Figure.axvline(x) coordinates are wrong` HOT 2
- Windows 10 terminal does not display brailles HOT 2
- Log scale for plot() HOT 2
- [Feature request] support arrow HOT 2
- [Feature Request] Treemaps HOT 1
- Feature request: Network graph HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plotille.