Open evert-mouw opened 6 years ago
hi @kressi i really like your terminal plotter and very cool addition with color, debug and multiplot abilitys @evert-mouw!
I try to use it as a live serial plotter for sensor data right on a rp2040. therefore I reposition the cursor so the next plot overwrites the previous.
for w in range(1,rows+4): # plus 4 to scroll plot to the top or plus 3 to keep plot at position
print('\033[1A', end='\x1b[2K')
furthermore I a.pop(0)
for any value above a certain len(a)
to keep the plot scrolling.
https://github.com/kressi/terminalplot/assets/60987359/183c27cd-d250-4f91-a315-169f6e5d25c2
Thanks a lot for the feedback and the shared example! I will have a closer look at it within the next couple of days.
Hi, Yes this is not the correct way to send in changes but I'm not forking the whole project. For my own use I modified your script so I could add up to four data series on the y axis and have colors. I also made a few other small changes. Maybe you like the changes so others could use them as well.
terminalplot2.zip