From 2e56a0d2e80416904712514da6dab788567a719b Mon Sep 17 00:00:00 2001 From: jakobst1n Date: Tue, 11 Jun 2024 22:57:42 +0200 Subject: Rename axis argument to silent, and invert it, so axis are enabled by default --- src/graph.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/graph.rs') diff --git a/src/graph.rs b/src/graph.rs index a3a8909..85a0838 100644 --- a/src/graph.rs +++ b/src/graph.rs @@ -150,6 +150,8 @@ impl GraphBuilder { if self.enable_axis { self.draw_axis( + min_y, + max_y, GraphPixel::Normal(ASCII_1), GraphPixel::Normal(ASCII_0), GraphPixel::Normal('└'), @@ -245,6 +247,8 @@ impl GraphBuilder { /// * `c7` - Top right axis pixel fn draw_axis( &mut self, + min_y: f64, + max_y: f64, c1: GraphPixel, c2: GraphPixel, c3: GraphPixel, -- cgit v1.2.3