Terminal plotter

Terminal plotter

•  •  10 updates •  4h 48m

Project for showing ascii art-style graphs

By StrawberryPuding

Timeline

StrawberryPuding
StrawberryPuding 10m spent working 68d ago

I checked the performance and found an useless for loop making the rendering process like 5s long

StrawberryPuding
StrawberryPuding 43m spent working 68d ago

Added y labels for the graph plot, but I sometimes get an IndexError... Already hating my past self for messy code, this will be a pain to debug

StrawberryPuding
StrawberryPuding 21m spent working 68d ago

I started out working on the rendering part. I plan on using braille characters since they give me 6 sub-characters per character, but if I want to do a line plot, I need some wonky math. I sketched it out and added some basic math utility functions I can use later.

StrawberryPuding StrawberryPuding 2 months ago

uh, what? i refreshed hackatime to get my time loaded, and instead this (my first update) got posted with that time, that´s weird… anyway, I added a reversing function so that I can generate labels on the y-axis.

StrawberryPuding
StrawberryPuding 18m spent working 68d ago

I added graph offsetting, so I have a separator bar on the y axis. With longwriting, I think I can add y-axis labels next

Update attachment
StrawberryPuding
StrawberryPuding 29m spent working 68d ago

I added long writing (writing trailing characters into the rendering array correctly), which means custom labels can now be used for the X axis!

StrawberryPuding
StrawberryPuding 20m spent working 68d ago

The deadline just jumped 12 hours closer, so I gotta lock in! I started writing support for multiple plotting datasets. I´m pleased to report that changing something that basically all code touches did not, in fact, break anything :D

StrawberryPuding
StrawberryPuding 1h spent working 69d ago

I finally found the off-by-one bug which broke the graph and fixed it! I also added common graph things like labeled elements. I´m looking to add more labeling and perhaps using truecolor capability later.

Update attachment
StrawberryPuding
StrawberryPuding 33m spent working 70d ago

I wrote the basic renderer, but it´s kind of buggy now - i´ll probably scour stackoverflow/check the code of some terminal utilities and see if it can be optimised

StrawberryPuding
StrawberryPuding 17m spent working 71d ago

I implemented scaling (not sure how to call it) for the y-values, e.g. exponential and logarithmic. I also started laying out the basic rendering system, I´ll have to do more research about different terminals to ensure this will work for most users.

StrawberryPuding
StrawberryPuding 22m spent working 73d ago

I started out working on the rendering part. I plan on using braille characters since they give me 6 sub-characters per character, but if I want to do a line plot, I need some wonky math. I sketched it out and added some basic math utility functions I can use later.