From 7f04e0e0775ebbda331d7ae9088287165ff37cf5 Mon Sep 17 00:00:00 2001 From: Felix Pankratz Date: Tue, 22 Jul 2025 19:57:12 +0200 Subject: [PATCH] zoom --- terminalplotter.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/terminalplotter.py b/terminalplotter.py index 47f052d..20cb7da 100644 --- a/terminalplotter.py +++ b/terminalplotter.py @@ -1,5 +1,4 @@ import asyncio -import io import math import select import sys @@ -53,6 +52,10 @@ class TerminalPlotter(pv.Plotter): self.camera.Elevation(10) elif c == "s": self.camera.Elevation(-10) + elif c == "+": + self.camera.zoom(1.1) + elif c == "-": + self.camera.zoom(0.9) async def _input_loop(self): fd = sys.stdin.fileno()